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
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
Methods
Equals(OnChangedData)
public bool Equals(OnChangedData other)
Parameters
otherOnChangedData
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetArrayChangedElementIndex()
Gets the index of the changed element of the array.
public int GetArrayChangedElementIndex()
Returns
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
indexint
Returns
- T
Type Parameters
T
GetHashCode()
public override int GetHashCode()
Returns
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
collectionNetworkDictionary<TKey, TValue>
Returns
- NetworkDictionarySnapshot<TKey, TValue>
Type Parameters
TKeyTValue
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
collectionNetworkHashSet<T>
Returns
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
collectionNetworkLinkedList<T>
Returns
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
collectionNetworkQueue<T>
Returns
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
collectionNetworkStack<T>
Returns
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
collectionNetworkUnorderedList<T>
Returns
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