Class CommandDataUtility
Inheritance
System.Object
CommandDataUtility
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Unity.NetCode
Syntax
public static class CommandDataUtility
Fields
k_CommandDataMaxSize
Declaration
public const int k_CommandDataMaxSize = 64
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
AddCommandData<T>(DynamicBuffer<T>, T)
Declaration
public static void AddCommandData<T>(this DynamicBuffer<T> commandArray, T commandData)
where T : struct, ICommandData<T>
Parameters
Type | Name | Description |
---|---|---|
DynamicBuffer<T> | commandArray | |
T | commandData |
Type Parameters
Name | Description |
---|---|
T |
GetDataAtTick<T>(DynamicBuffer<T>, UInt32, out T)
Declaration
public static bool GetDataAtTick<T>(this DynamicBuffer<T> commandArray, uint targetTick, out T commandData)
where T : struct, ICommandData<T>
Parameters
Type | Name | Description |
---|---|---|
DynamicBuffer<T> | commandArray | |
System.UInt32 | targetTick | |
T | commandData |
Returns
Type | Description |
---|---|
System.Boolean |
Type Parameters
Name | Description |
---|---|
T |