Table of Contents

Struct OnChangedData

Namespace
Netick
Assembly
Netick.dll
public struct OnChangedData : IEquatable<OnChangedData>
Implements
Inherited Members

Properties

InvokedForMisprediction

Returns true if this OnChanged callback is due to a mismatch between the state of this variable before rollback, and the state after rollback and resimulation.

This flag always returns false on the server.

public bool InvokedForMisprediction { get; }

Property Value

bool

IsCatchingUp

Returns true during the server-authoritative tick in which this client is catching up on an already-existing object — either because the client has just late-joined, or because it has just gained/regained interest in this object.

This flag is only set for existing objects; it is not set for objects (ones that the client has interest in at spawn time) spawned after the client has joined. It is true only during the "catching up" tick in which the object becomes relevant, and false afterward.

This flag always returns false on the server.

public bool IsCatchingUp { get; }

Property Value

bool

Methods

Equals(OnChangedData)

public bool Equals(OnChangedData other)

Parameters

other OnChangedData

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetArrayChangedElementIndex()

Gets the index of the changed element of the array.

public int GetArrayChangedElementIndex()

Returns

int

GetArrayPreviousElementValue<T>()

Gets the index of the changed element of the array.

public T GetArrayPreviousElementValue<T>() where T : unmanaged

Returns

T

Type Parameters

T

GetArrayPreviousElementValue<T>(int)

Gets the value of the changed element of the array. This is an unsafe method, use it carefully and make sure to never go outside range to avoid a crash.

public T GetArrayPreviousElementValue<T>(int index) where T : unmanaged

Parameters

index int

Returns

T

Type Parameters

T

GetHashCode()

public override int GetHashCode()

Returns

int

GetPreviousNetworkDictionary<TKey, TValue>(NetworkDictionary<TKey, TValue>)

Gets a snapshot of the previous state of a NetworkDictionary collection.

public NetworkDictionarySnapshot<TKey, TValue> GetPreviousNetworkDictionary<TKey, TValue>(NetworkDictionary<TKey, TValue> collection) where TKey : unmanaged where TValue : unmanaged

Parameters

collection NetworkDictionary<TKey, TValue>

Returns

NetworkDictionarySnapshot<TKey, TValue>

Type Parameters

TKey
TValue

GetPreviousNetworkHashSet<T>(NetworkHashSet<T>)

Gets a snapshot of the previous state of a NetworkHashSet collection.

public NetworkHashSetSnapshot<T> GetPreviousNetworkHashSet<T>(NetworkHashSet<T> collection) where T : unmanaged

Parameters

collection NetworkHashSet<T>

Returns

NetworkHashSetSnapshot<T>

Type Parameters

T

GetPreviousNetworkLinkedList<T>(NetworkLinkedList<T>)

Gets a snapshot of the previous state of a NetworkLinkedList collection.

public NetworkLinkedListSnapshot<T> GetPreviousNetworkLinkedList<T>(NetworkLinkedList<T> collection) where T : unmanaged

Parameters

collection NetworkLinkedList<T>

Returns

NetworkLinkedListSnapshot<T>

Type Parameters

T

GetPreviousNetworkQueue<T>(NetworkQueue<T>)

Gets a snapshot of the previous state of a NetworkQueue collection.

public NetworkQueueSnapshot<T> GetPreviousNetworkQueue<T>(NetworkQueue<T> collection) where T : unmanaged

Parameters

collection NetworkQueue<T>

Returns

NetworkQueueSnapshot<T>

Type Parameters

T

GetPreviousNetworkStack<T>(NetworkStack<T>)

Gets a snapshot of the previous state of a NetworkStack collection.

public NetworkStackSnapshot<T> GetPreviousNetworkStack<T>(NetworkStack<T> collection) where T : unmanaged

Parameters

collection NetworkStack<T>

Returns

NetworkStackSnapshot<T>

Type Parameters

T

GetPreviousNetworkUnorderedList<T>(NetworkUnorderedList<T>)

Gets a snapshot of the previous state of a NetworkUnorderedList collection.

public NetworkUnorderedListSnapshot<T> GetPreviousNetworkUnorderedList<T>(NetworkUnorderedList<T> collection) where T : unmanaged

Parameters

collection NetworkUnorderedList<T>

Returns

NetworkUnorderedListSnapshot<T>

Type Parameters

T

GetPreviousValueAsPointer()

Gets a pointer to the previous value

public int* GetPreviousValueAsPointer()

Returns

int*

GetPreviousValue<T>()

Gets previous value for the changed network property.

Note: this must only be used with non-array network properties. For arrays, use GetArrayPreviousElementValue<T>(int) instead.

public T GetPreviousValue<T>() where T : unmanaged

Returns

T

Type Parameters

T