Represents a buffer of structural modifications to apply on Entity to record as postoned commands.
public sealed class EntityCommandRecorder :
System.IDisposable
Inheritance System.Object 🡒 EntityCommandRecorder
Implements System.IDisposable
Constructors | |
---|---|
EntityCommandRecorder() | Creates a default sized EntityCommandRecorder of 1ko which can grow as needed. |
EntityCommandRecorder(int) | Creates a fixed sized EntityCommandRecorder. |
EntityCommandRecorder(int, int) | Creates an EntityCommandRecorder with a custom default size which can grow to a maximum capacity. |
Properties | |
---|---|
Capacity | Gets current capacity of the current instance. |
MaxCapacity | Gets the maximum capacity the current instance can grow to. |
Size | Gets the size taken by recorded commands in current instance. |
Methods | |
---|---|
Clear() | Clears all recorded commands. |
Dispose() | Releases inner unmanaged resources. |
Execute() | Executes all recorded commands and clears those commands. |
Record(Entity) | Gives an EntityRecord to record action on the given Entity. This command takes 9 bytes. |
Record(World) | Gives an WorldRecord to record action on the given World. |