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.

public bool InvokedForMisprediction { 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

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