예제 #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);
        }