Exemplo n.º 1
0
 public void Update(HEntityAction action)
 {
     if (!TryUpdate(action))
     {
         throw new ArgumentException("Entity index does not match.", nameof(action));
     }
 }
Exemplo n.º 2
0
        public bool TryUpdate(HEntityAction action)
        {
            if (Index != action.Index)
            {
                return(false);
            }

            Tile       = action.Tile;
            LastUpdate = action;
            return(true);
        }