Exemple #1
0
 private string GetSortingLayerName(E_TileMaterial tileMaterial)
 {
     if (tileMaterial <= E_TileMaterial.RoomFloor)
     {
         return(eGameLayer.BG.ToString());
     }
     else if (tileMaterial <= E_TileMaterial.Max)
     {
         return(eGameLayer.BGObject.ToString());
     }
     else if (tileMaterial <= E_TileMaterial.Enemy)
     {
         return(eGameLayer.GameObject.ToString());
     }
     return(eGameLayer.BG.ToString());
 }
Exemple #2
0
 public bool Decode(BinaryDecoder decoder)
 {
     if (!BinaryCodec.Decode(decoder, out _id))
     {
         return(false);
     }
     {
         int enumValue = 0;
         if (!BinaryCodec.Decode(decoder, out enumValue))
         {
             return(false);
         }
         _autoTileType = (E_AutoTile)enumValue;
     }
     if (!BinaryCodec.Decode(decoder, out _name))
     {
         return(false);
     }
     if (!BinaryCodec.Decode(decoder, out _groupname))
     {
         return(false);
     }
     if (!BinaryCodec.Decode(decoder, out _spriteindex))
     {
         return(false);
     }
     {
         int enumValue = 0;
         if (!BinaryCodec.Decode(decoder, out enumValue))
         {
             return(false);
         }
         _tileMaterial = (E_TileMaterial)enumValue;
     }
     if (!BinaryCodec.Decode(decoder, out _option))
     {
         return(false);
     }
     return(true);
 }
Exemple #3
0
 public bool Decode(BinaryDecoder decoder)
 {
     if (!BinaryCodec.Decode(decoder, out _id))
     {
         return(false);
     }
     if (!BinaryCodec.Decode(decoder, out _name))
     {
         return(false);
     }
     {
         int enumValue = 0;
         if (!BinaryCodec.Decode(decoder, out enumValue))
         {
             return(false);
         }
         _tileMaterial = (E_TileMaterial)enumValue;
     }
     if (!BinaryCodec.Decode(decoder, out _isMove))
     {
         return(false);
     }
     if (!BinaryCodec.Decode(decoder, out _groupname))
     {
         return(false);
     }
     if (!BinaryCodec.Decode(decoder, out _randomCount))
     {
         return(false);
     }
     if (!BinaryCodec.Decode(decoder, out _isAutoTile))
     {
         return(false);
     }
     {
         int enumValue = 0;
         if (!BinaryCodec.Decode(decoder, out enumValue))
         {
             return(false);
         }
         _autoTileType = (E_AutoTile)enumValue;
     }
     if (!BinaryCodec.Decode(decoder, out _subPath))
     {
         return(false);
     }
     if (!BinaryCodec.Decode(decoder, out _spritePack))
     {
         return(false);
     }
     {
         ushort _size = 0;
         if (!BinaryCodec.Decode(decoder, out _size))
         {
             return(false);
         }
         sprites.Capacity = _size;
         for (int i = 0; i < _size; ++i)
         {
             string item = null;
             if (!BinaryCodec.Decode(decoder, out item))
             {
                 return(false);
             }
             sprites.Add(item);
         }
     }
     return(true);
 }