Пример #1
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);
 }
Пример #2
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);
 }