Beispiel #1
0
        public override void Deserialize(IDataReader reader)
        {
            masterId = reader.ReadDouble();
            if (masterId < -9007199254740990 || masterId > 9007199254740990)
            {
                throw new Exception("Forbidden value on masterId = " + masterId + ", it doesn't respect the following condition : masterId < -9007199254740990 || masterId > 9007199254740990");
            }
            slaveId = reader.ReadDouble();
            if (slaveId < -9007199254740990 || slaveId > 9007199254740990)
            {
                throw new Exception("Forbidden value on slaveId = " + slaveId + ", it doesn't respect the following condition : slaveId < -9007199254740990 || slaveId > 9007199254740990");
            }
            var limit        = reader.ReadUShort();
            var slaveSpells_ = new Types.SpellItem[limit];

            for (int i = 0; i < limit; i++)
            {
                slaveSpells_[i] = new Types.SpellItem();
                slaveSpells_[i].Deserialize(reader);
            }
            slaveSpells = slaveSpells_;
            slaveStats  = new Types.CharacterCharacteristicsInformations();
            slaveStats.Deserialize(reader);
            limit = reader.ReadUShort();
            var shortcuts_ = new Types.Shortcut[limit];

            for (int i = 0; i < limit; i++)
            {
                shortcuts_[i] = Types.ProtocolTypeManager.GetInstance <Types.Shortcut>(reader.ReadShort());
                shortcuts_[i].Deserialize(reader);
            }
            shortcuts = shortcuts_;
        }
 public override void Deserialize(IDataReader reader)
 {
     barType = reader.ReadSByte();
     if (barType < 0)
         throw new Exception("Forbidden value on barType = " + barType + ", it doesn't respect the following condition : barType < 0");
     shortcut = Types.ProtocolTypeManager.GetInstance<Types.Shortcut>(reader.ReadShort());
     shortcut.Deserialize(reader);
 }
Beispiel #3
0
 public override void Deserialize(ICustomDataInput reader)
 {
     barType = reader.ReadSByte();
     if (barType < 0)
     {
         throw new Exception("Forbidden value on barType = " + barType + ", it doesn't respect the following condition : barType < 0");
     }
     shortcut = ProtocolTypeManager.GetInstance <Types.Shortcut>(reader.ReadShort());
     shortcut.Deserialize(reader);
 }
        public override void Deserialize(IDataReader reader)
        {
            barType = reader.ReadSByte();
            if (barType < 0)
            {
                throw new Exception("Forbidden value on barType = " + barType + ", it doesn't respect the following condition : barType < 0");
            }
            var limit      = reader.ReadUShort();
            var shortcuts_ = new Types.Shortcut[limit];

            for (int i = 0; i < limit; i++)
            {
                shortcuts_[i] = Types.ProtocolTypeManager.GetInstance <Types.Shortcut>(reader.ReadShort());
                shortcuts_[i].Deserialize(reader);
            }
            shortcuts = shortcuts_;
        }
 public ShortcutBarRefreshMessage(sbyte barType, Types.Shortcut shortcut)
 {
     this.barType = barType;
     this.shortcut = shortcut;
 }
 public ShortcutBarAddRequestMessage(sbyte barType, Types.Shortcut shortcut)
 {
     this.barType = barType;
     this.shortcut = shortcut;
 }
Beispiel #7
0
 public ShortcutBarAddRequestMessage(sbyte barType, Types.Shortcut shortcut)
 {
     this.barType  = barType;
     this.shortcut = shortcut;
 }
 public ShortcutBarRefreshMessage(sbyte barType, Types.Shortcut shortcut)
 {
     this.barType  = barType;
     this.shortcut = shortcut;
 }
 public override void Deserialize(IReader reader)
 {
     barType  = reader.ReadSByte();
     shortcut = ProtocolTypeManager.GetInstance <Types.Shortcut>(reader.ReadUShort());
     shortcut.Deserialize(reader);
 }