oecs-sharp/OECS/ICommand.cs

15 lines
399 B
C#

namespace OECS;
/// <summary>
/// A serializable command that can be enqueued and executed against a <see cref="World"/>.
/// Implementations should be <c>[MessagePackObject]</c> structs so they can be
/// serialized and replayed.
/// </summary>
public interface ICommand
{
/// <summary>
/// Executes the command against the given world.
/// </summary>
void Execute(World world);
}