示例#1
0
文件: HEntity.cs 项目: Nestor/Tanji-1
 public void Update(HEntityAction action)
 {
     if (!TryUpdate(action))
     {
         throw new ArgumentException("Entity index does not match.", nameof(action));
     }
 }
示例#2
0
文件: HEntity.cs 项目: Nestor/Tanji-1
        public bool TryUpdate(HEntityAction action)
        {
            if (Index != action.Index)
            {
                return(false);
            }

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