public override void Deserialize(IDataReader reader)
 {
   uint num = (uint) reader.ReadUShort();
   for (int index = 0; (long) index < (long) num; ++index)
   {
     CharacterBaseInformations instance = ProtocolTypeManager.GetInstance<CharacterBaseInformations>((uint) reader.ReadUShort());
     instance.Deserialize(reader);
     this.characters.Add(instance);
   }
 }
Ejemplo n.º 2
0
        public override void Deserialize(IDataReader reader)
        {
            int charactersCount = reader.ReadUShort();

            Characters = new List <CharacterBaseInformations>();
            for (int i = 0; i < charactersCount; i++)
            {
                CharacterBaseInformations objectToAdd = ProtocolManager.GetTypeInstance <CharacterBaseInformations>(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                Characters.Add(objectToAdd);
            }
        }
Ejemplo n.º 3
0
        public override void Deserialize(ICustomDataInput reader)
        {
            var countCharacters = reader.ReadShort();

            Characters = new List <CharacterBaseInformations>();
            for (short i = 0; i < countCharacters; i++)
            {
                var characterstypeId           = reader.ReadShort();
                CharacterBaseInformations type = new CharacterBaseInformations();
                type.Deserialize(reader);
                Characters.Add(type);
            }
        }
 public override void Deserialize(IDataReader reader)
 {
     m_infos = new CharacterBaseInformations();
     m_infos.Deserialize(reader);
     m_isCollectingStats = reader.ReadBoolean();
 }
 public void Deserialize(IDataReader reader)
 {
     Infos = new CharacterBaseInformations();
     Infos.Deserialize(reader);
     IsCollectingStats = reader.ReadBoolean();
 }
Ejemplo n.º 6
0
 public override void Deserialize(IDataReader reader)
 {
     infos = new CharacterBaseInformations();
     infos.Deserialize(reader);
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     Infos = new CharacterBaseInformations();
     Infos.Deserialize(reader);
     IsCollectingStats = reader.ReadBoolean();
 }