public void Update(HEntityAction action) { if (!TryUpdate(action)) { throw new ArgumentException("Entity index does not match.", nameof(action)); } }
public bool TryUpdate(HEntityAction action) { if (Index != action.Index) { return(false); } Tile = action.Tile; LastUpdate = action; return(true); }