Class Binding
Base class for everything that can be synced over the network. A binding holds the metadata that associates a user-facing unity component with its network replicated coherence component.
public abstract class Binding
- Inheritance
-
Binding
- Derived
-
ValueBinding<T>
Constructors
Binding()
protected Binding()
Binding(Descriptor, Component)
public Binding(Descriptor descriptor, Component unityComponent)
Parameters
descriptor
DescriptorunityComponent
Component
Fields
archetypeData
public BindingArchetypeData archetypeData
Field Value
coherenceSync
public CoherenceSync coherenceSync
Field Value
defaultInterpolationPath
public string defaultInterpolationPath
Field Value
descriptor
protected Descriptor descriptor
Field Value
genericPoolIndex
protected int genericPoolIndex
Field Value
guid
public string guid
Field Value
interpolationSettings
[InterpolationPicker]
public InterpolationSettings interpolationSettings
Field Value
isPredicted
[Obsolete("Please use predictionMode instead.")]
public bool isPredicted
Field Value
predictionMode
public PredictionMode predictionMode
Field Value
routing
public MessageTarget routing
Field Value
runtimeInterpolationSettings
protected InterpolationSettings runtimeInterpolationSettings
Field Value
unityComponent
public Component unityComponent
Field Value
Properties
BakedSyncScriptCSharpType
public string BakedSyncScriptCSharpType { get; }
Property Value
BakedSyncScriptGetter
public virtual string BakedSyncScriptGetter { get; }
Property Value
BakedSyncScriptSetter
public virtual string BakedSyncScriptSetter { get; }
Property Value
BindingArchetypeData
public BindingArchetypeData BindingArchetypeData { get; }
Property Value
CoherenceComponentAssemblyName
public virtual string CoherenceComponentAssemblyName { get; }
Property Value
CoherenceComponentName
public virtual string CoherenceComponentName { get; }
Property Value
CoherenceComponentNamespace
public virtual string CoherenceComponentNamespace { get; }
Property Value
CoherenceComponentType
public Type CoherenceComponentType { get; }
Property Value
Descriptor
public Descriptor Descriptor { get; }
Property Value
EmitSchemaComponentDefinition
public virtual bool EmitSchemaComponentDefinition { get; }
Property Value
EnforcesLODingWhenFieldsOverriden
public bool EnforcesLODingWhenFieldsOverriden { get; }
Property Value
FieldMask
public virtual uint FieldMask { get; }
Property Value
FullName
public string FullName { get; }
Property Value
IsMethod
public bool IsMethod { get; }
Property Value
IsValid
public bool IsValid { get; }
Property Value
Logger
protected Logger Logger { get; }
Property Value
MemberNameInComponentData
public virtual string MemberNameInComponentData { get; }
Property Value
MemberNameInUnityComponent
public virtual string MemberNameInUnityComponent { get; }
Property Value
MonoAssemblyRuntimeType
public Type MonoAssemblyRuntimeType { get; }
Property Value
Name
public string Name { get; }
Property Value
OverrideGetter
public virtual bool OverrideGetter { get; }
Property Value
OverrideSetter
public virtual bool OverrideSetter { get; }
Property Value
RuntimeInterpolationSettings
public InterpolationSettings RuntimeInterpolationSettings { get; }
Property Value
SchemaFieldName
public string SchemaFieldName { get; }
Property Value
SchemaFieldSimulationFrameName
public string SchemaFieldSimulationFrameName { get; }
Property Value
Signature
public virtual string Signature { get; }
Property Value
UnityComponent
public Component UnityComponent { get; }
Property Value
UntypedValue
public virtual object UntypedValue { get; }
Property Value
Methods
Clone(Component)
public Binding Clone(Component c)
Parameters
Returns
CloneTo(Binding)
public virtual void CloneTo(Binding clone)
Parameters
clone
Binding
CreateComponentData()
public virtual ICoherenceComponentData CreateComponentData()
Returns
Dispose()
public void Dispose()
Equals(object)
public override bool Equals(object other)
Parameters
other
object
Returns
GetHashCode()
public override abstract int GetHashCode()
Returns
GetMemberInfo()
public virtual MemberInfo GetMemberInfo()
Returns
Interpolate(double)
public virtual void Interpolate(double time)
Parameters
time
double
InvokeValueSyncCallback()
public virtual void InvokeValueSyncCallback()
IsCurrentlyPredicted()
public virtual bool IsCurrentlyPredicted()
Returns
IsDirty(AbsoluteSimulationFrame, out bool, out bool)
public abstract void IsDirty(AbsoluteSimulationFrame simulationFrame, out bool dirty, out bool justStopped)
Parameters
simulationFrame
AbsoluteSimulationFramedirty
booljustStopped
bool
MarkAsReadyToSend()
public abstract void MarkAsReadyToSend()
OnBindingCloned()
protected virtual void OnBindingCloned()
OnConnectedEntityChanged()
public virtual void OnConnectedEntityChanged()
ReceiveComponentData(ICoherenceComponentData, AbsoluteSimulationFrame, Vector3)
public virtual void ReceiveComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame clientFrame, Vector3 floatingOriginDelta)
Parameters
coherenceComponent
ICoherenceComponentDataclientFrame
AbsoluteSimulationFramefloatingOriginDelta
Vector3
ReceiveSampleFromNetwork<T>(T, bool, AbsoluteSimulationFrame, AbsoluteSimulationFrame)
public void ReceiveSampleFromNetwork<T>(T data, bool stopped, AbsoluteSimulationFrame sampleFrame, AbsoluteSimulationFrame clientFrame)
Parameters
data
Tstopped
boolsampleFrame
AbsoluteSimulationFrameclientFrame
AbsoluteSimulationFrame
Type Parameters
T
RemoveOutdatedSamples(double)
public virtual void RemoveOutdatedSamples(double time)
Parameters
time
double
ResetLastSentData()
public virtual void ResetLastSentData()
SampleValue()
public virtual void SampleValue()
SetToLastSample()
public virtual void SetToLastSample()
ValidateNotBound()
public virtual void ValidateNotBound()
WriteComponentData(ICoherenceComponentData, AbsoluteSimulationFrame)
public virtual ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame)
Parameters
coherenceComponent
ICoherenceComponentDatasimFrame
AbsoluteSimulationFrame
Returns
Events
OnNetworkSampleReceived
public event Action<object, bool, long> OnNetworkSampleReceived