Table of Contents

Class Binding

Namespace
Coherence.Toolkit.Bindings
Assembly
Coherence.Toolkit.dll

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

Constructors

Binding()

protected Binding()
See Also

Binding(Descriptor, Component)

public Binding(Descriptor descriptor, Component unityComponent)

Parameters

descriptor Descriptor
unityComponent Component
See Also

Fields

archetypeData

public BindingArchetypeData archetypeData

Field Value

BindingArchetypeData
See Also

coherenceSync

public CoherenceSync coherenceSync

Field Value

CoherenceSync
See Also

defaultInterpolationPath

public string defaultInterpolationPath

Field Value

string
See Also

descriptor

protected Descriptor descriptor

Field Value

Descriptor
See Also

genericPoolIndex

protected int genericPoolIndex

Field Value

int
See Also

guid

public string guid

Field Value

string
See Also

interpolationSettings

[InterpolationPicker]
public InterpolationSettings interpolationSettings

Field Value

InterpolationSettings
See Also

isPredicted

public bool isPredicted

Field Value

bool
See Also

routing

public MessageTarget routing

Field Value

MessageTarget
See Also

runtimeInterpolationSettings

protected InterpolationSettings runtimeInterpolationSettings

Field Value

InterpolationSettings
See Also

unityComponent

public Component unityComponent

Field Value

Component
See Also

Properties

BakedSyncScriptCSharpType

public string BakedSyncScriptCSharpType { get; }

Property Value

string
See Also

BakedSyncScriptGetter

public virtual string BakedSyncScriptGetter { get; }

Property Value

string
See Also

BakedSyncScriptSetter

public virtual string BakedSyncScriptSetter { get; }

Property Value

string
See Also

BindingArchetypeData

public BindingArchetypeData BindingArchetypeData { get; }

Property Value

BindingArchetypeData
See Also

CoherenceComponentAssemblyName

public virtual string CoherenceComponentAssemblyName { get; }

Property Value

string
See Also

CoherenceComponentName

public virtual string CoherenceComponentName { get; }

Property Value

string
See Also

CoherenceComponentNamespace

public virtual string CoherenceComponentNamespace { get; }

Property Value

string
See Also

CoherenceComponentType

public Type CoherenceComponentType { get; }

Property Value

Type
See Also

Descriptor

public Descriptor Descriptor { get; }

Property Value

Descriptor
See Also

EnforcesLODingWhenFieldsOverriden

public bool EnforcesLODingWhenFieldsOverriden { get; }

Property Value

bool
See Also

FieldMask

public virtual uint FieldMask { get; }

Property Value

uint
See Also

FullName

public string FullName { get; }

Property Value

string
See Also

IsMethod

public bool IsMethod { get; }

Property Value

bool
See Also

IsValid

public bool IsValid { get; }

Property Value

bool
See Also

Logger

protected Logger Logger { get; }

Property Value

Logger
See Also

MemberName

public virtual string MemberName { get; }

Property Value

string
See Also

MonoAssemblyRuntimeType

public Type MonoAssemblyRuntimeType { get; }

Property Value

Type
See Also

Name

public string Name { get; }

Property Value

string
See Also

RuntimeInterpolationSettings

public InterpolationSettings RuntimeInterpolationSettings { get; }

Property Value

InterpolationSettings
See Also

SchemaFieldName

public string SchemaFieldName { get; }

Property Value

string
See Also

Signature

public virtual string Signature { get; }

Property Value

string
See Also

UnityComponent

public Component UnityComponent { get; }

Property Value

Component
See Also

UntypedValue

public virtual object UntypedValue { get; }

Property Value

object
See Also

Methods

Clone(Component)

public Binding Clone(Component c)

Parameters

c Component

Returns

Binding
See Also

CloneTo(Binding)

public virtual void CloneTo(Binding clone)

Parameters

clone Binding
See Also

CreateComponentData()

public virtual ICoherenceComponentData CreateComponentData()

Returns

ICoherenceComponentData
See Also

Dispose()

public void Dispose()
See Also

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool
See Also

GetHashCode()

public override abstract int GetHashCode()

Returns

int
See Also

GetMemberInfo()

public virtual MemberInfo GetMemberInfo()

Returns

MemberInfo
See Also

Interpolate(double)

public virtual void Interpolate(double time)

Parameters

time double
See Also

InvokeValueSyncCallback()

public virtual void InvokeValueSyncCallback()
See Also

IsDirty(double)

public abstract bool IsDirty(double simulationFrameTime)

Parameters

simulationFrameTime double

Returns

bool
See Also

OnBindingCloned()

protected virtual void OnBindingCloned()
See Also

OnConnectedEntityChanged()

public virtual void OnConnectedEntityChanged()
See Also

ReceiveComponentData(ICoherenceComponentData, AbsoluteSimulationFrame, Vector3)

public virtual void ReceiveComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame clientFrame, Vector3 floatingOriginDelta)

Parameters

coherenceComponent ICoherenceComponentData
clientFrame AbsoluteSimulationFrame
floatingOriginDelta Vector3
See Also

ReceiveSampleFromNetwork<T>(T, AbsoluteSimulationFrame, AbsoluteSimulationFrame)

public void ReceiveSampleFromNetwork<T>(T data, AbsoluteSimulationFrame sampleFrame, AbsoluteSimulationFrame clientFrame)

Parameters

data T
sampleFrame AbsoluteSimulationFrame
clientFrame AbsoluteSimulationFrame

Type Parameters

T
See Also

RemoveOutdatedSamples(double)

public virtual void RemoveOutdatedSamples(double time)

Parameters

time double
See Also

Reset()

public abstract void Reset()
See Also

ResetLastSentData()

public virtual void ResetLastSentData()
See Also

SampleValue()

public virtual void SampleValue()
See Also

SetToLastSample()

public virtual void SetToLastSample()
See Also

ShouldApplyNetworkData()

public bool ShouldApplyNetworkData()

Returns

bool
See Also

ValidateNotBound()

public virtual void ValidateNotBound()
See Also

WriteComponentData(ICoherenceComponentData, double)

public virtual ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, double time)

Parameters

coherenceComponent ICoherenceComponentData
time double

Returns

ICoherenceComponentData
See Also

Events

OnNetworkSampleReceived

public event Action<object, long> OnNetworkSampleReceived

Event Type

Action<object, long>
See Also

See Also