Beispiel #1
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            teamId = reader.ReadSByte();
            if (teamId < 0)
            {
                throw new Exception("Forbidden value on teamId = " + teamId + ", it doesn't respect the following condition : teamId < 0");
            }
            wave = reader.ReadSByte();
            if (wave < 0)
            {
                throw new Exception("Forbidden value on wave = " + wave + ", it doesn't respect the following condition : wave < 0");
            }
            alive = reader.ReadBoolean();
            stats = Types.ProtocolTypeManager.GetInstance <Types.GameFightMinimalStats>(reader.ReadShort());
            stats.Deserialize(reader);
            var limit = reader.ReadUShort();
            var previousPositions_ = new short[limit];

            for (int i = 0; i < limit; i++)
            {
                previousPositions_[i] = reader.ReadVarShort();
            }
            previousPositions = previousPositions_;
        }
 public GameFightFighterInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, sbyte teamId, bool alive, Types.GameFightMinimalStats stats)
     : base(contextualId, look, disposition)
 {
     this.teamId = teamId;
     this.alive = alive;
     this.stats = stats;
 }
 public GameFightFighterInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, sbyte teamId, bool alive, Types.GameFightMinimalStats stats)
     : base(contextualId, look, disposition)
 {
     this.teamId = teamId;
     this.alive  = alive;
     this.stats  = stats;
 }
 public GameFightFighterInformations(double contextualId, Types.EntityDispositionInformations disposition, Types.EntityLook look, Types.GameContextBasicSpawnInformation spawnInfo, sbyte wave, Types.GameFightMinimalStats stats, uint[] previousPositions)
     : base(contextualId, disposition, look)
 {
     this.spawnInfo         = spawnInfo;
     this.wave              = wave;
     this.stats             = stats;
     this.previousPositions = previousPositions;
 }
 public GameContextSummonsInformation(Types.SpawnInformation spawnInformation, sbyte wave, Types.EntityLook look, Types.GameFightMinimalStats stats, Types.GameContextBasicSpawnInformation[] summons)
 {
     this.spawnInformation = spawnInformation;
     this.wave             = wave;
     this.look             = look;
     this.stats            = stats;
     this.summons          = summons;
 }
Beispiel #6
0
 public GameFightFighterInformations(double contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, Types.GameFightMinimalStats stats, IEnumerable <ushort> previousPositions)
     : base(contextualId, look, disposition)
 {
     this.teamId            = teamId;
     this.wave              = wave;
     this.alive             = alive;
     this.stats             = stats;
     this.previousPositions = previousPositions;
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     teamId = reader.ReadSByte();
     if (teamId < 0)
         throw new Exception("Forbidden value on teamId = " + teamId + ", it doesn't respect the following condition : teamId < 0");
     alive = reader.ReadBoolean();
     stats = Types.ProtocolTypeManager.GetInstance<Types.GameFightMinimalStats>(reader.ReadShort());
     stats.Deserialize(reader);
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     fighterId = reader.ReadDouble();
     if (fighterId < -9007199254740990 || fighterId > 9007199254740990)
     {
         throw new Exception("Forbidden value on fighterId = " + fighterId + ", it doesn't respect the following condition : fighterId < -9007199254740990 || fighterId > 9007199254740990");
     }
     stats = new Types.GameFightMinimalStats();
     stats.Deserialize(reader);
 }
 public void Deserialize(IDataReader reader)
 {
     fighterId = reader.ReadDouble();
     if (fighterId < -9.007199254740992E15 || fighterId > 9.007199254740992E15)
     {
         throw new System.Exception("Forbidden value on fighterId = " + fighterId + ", it doesn't respect the following condition : fighterId < -9.007199254740992E15 || fighterId > 9.007199254740992E15");
     }
     stats = new Types.GameFightMinimalStats();
     stats.Deserialize(reader);
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     teamId = reader.ReadSByte();
     if (teamId < 0)
     {
         throw new Exception("Forbidden value on teamId = " + teamId + ", it doesn't respect the following condition : teamId < 0");
     }
     alive = reader.ReadBoolean();
     stats = Types.ProtocolTypeManager.GetInstance <Types.GameFightMinimalStats>(reader.ReadShort());
     stats.Deserialize(reader);
 }
Beispiel #11
0
        public override void Deserialize(IReader reader)
        {
            base.Deserialize(reader);
            teamId = reader.ReadSByte();
            wave   = reader.ReadSByte();
            alive  = reader.ReadBoolean();
            stats  = ProtocolTypeManager.GetInstance <Types.GameFightMinimalStats>(reader.ReadUShort());
            stats.Deserialize(reader);
            var limit = reader.ReadUShort();

            previousPositions = new ushort[limit];
            for (int i = 0; i < limit; i++)
            {
                (previousPositions as ushort[])[i] = reader.ReadVarUhShort();
            }
        }
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            spawnInfo = new Types.GameContextBasicSpawnInformation();
            spawnInfo.Deserialize(reader);
            wave  = reader.ReadSbyte();
            stats = ProtocolTypeManager.GetInstance <Types.GameFightMinimalStats>(reader.ReadUShort());
            stats.Deserialize(reader);
            var limit = (ushort)reader.ReadUShort();

            previousPositions = new uint[limit];
            for (int i = 0; i < limit; i++)
            {
                previousPositions[i] = reader.ReadVarUhShort();
            }
        }
        public virtual void Deserialize(IDataReader reader)
        {
            spawnInformation = ProtocolTypeManager.GetInstance <Types.SpawnInformation>(reader.ReadUShort());
            spawnInformation.Deserialize(reader);
            wave = reader.ReadSbyte();
            look = new Types.EntityLook();
            look.Deserialize(reader);
            stats = ProtocolTypeManager.GetInstance <Types.GameFightMinimalStats>(reader.ReadUShort());
            stats.Deserialize(reader);
            var limit = (ushort)reader.ReadUShort();

            summons = new Types.GameContextBasicSpawnInformation[limit];
            for (int i = 0; i < limit; i++)
            {
                summons[i] = ProtocolTypeManager.GetInstance <Types.GameContextBasicSpawnInformation>(reader.ReadUShort());
                summons[i].Deserialize(reader);
            }
        }
Beispiel #14
0
 public GameFightCharacterInformations(double contextualId, Types.EntityDispositionInformations disposition, Types.EntityLook look, Types.GameContextBasicSpawnInformation spawnInfo, sbyte wave, Types.GameFightMinimalStats stats, uint[] previousPositions, string name, Types.PlayerStatus status, int leagueId, int ladderPosition, bool hiddenInPrefight, uint level, Types.ActorAlignmentInformations alignmentInfos, sbyte breed, bool sex)
     : base(contextualId, disposition, look, spawnInfo, wave, stats, previousPositions, name, status, leagueId, ladderPosition, hiddenInPrefight)
 {
     this.level          = level;
     this.alignmentInfos = alignmentInfos;
     this.breed          = breed;
     this.sex            = sex;
 }
 public GameFightMutantInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, Types.GameFightMinimalStats stats, IEnumerable <ushort> previousPositions, string name, Types.PlayerStatus status, sbyte powerLevel)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions, name, status)
 {
     this.powerLevel = powerLevel;
 }
 public GameFightTaxCollectorInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, sbyte teamId, bool alive, Types.GameFightMinimalStats stats, short firstNameId, short lastNameId, short level)
     : base(contextualId, look, disposition, teamId, alive, stats)
 {
     this.firstNameId = firstNameId;
     this.lastNameId  = lastNameId;
     this.level       = level;
 }
Beispiel #17
0
 public GameFightCharacterInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, Types.GameFightMinimalStats stats, short[] previousPositions, string name, Types.PlayerStatus status, byte level, Types.ActorAlignmentInformations alignmentInfos, sbyte breed, bool sex)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions, name, status)
 {
     this.level          = level;
     this.alignmentInfos = alignmentInfos;
     this.breed          = breed;
     this.sex            = sex;
 }
 public GameFightMutantInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, sbyte teamId, bool alive, Types.GameFightMinimalStats stats, string name, sbyte powerLevel)
     : base(contextualId, look, disposition, teamId, alive, stats, name)
 {
     this.powerLevel = powerLevel;
 }
Beispiel #19
0
 public RefreshCharacterStatsMessage(double fighterId, Types.GameFightMinimalStats stats)
 {
     this.fighterId = fighterId;
     this.stats     = stats;
 }
Beispiel #20
0
 public GameFightAIInformations(double contextualId, Types.EntityDispositionInformations disposition, Types.EntityLook look, Types.GameContextBasicSpawnInformation spawnInfo, sbyte wave, Types.GameFightMinimalStats stats, uint[] previousPositions)
     : base(contextualId, disposition, look, spawnInfo, wave, stats, previousPositions)
 {
 }
Beispiel #21
0
 public GameFightEntityInformation(double contextualId, Types.EntityDispositionInformations disposition, Types.EntityLook look, Types.GameContextBasicSpawnInformation spawnInfo, sbyte wave, Types.GameFightMinimalStats stats, uint[] previousPositions, sbyte entityModelId, uint level, double masterId)
     : base(contextualId, disposition, look, spawnInfo, wave, stats, previousPositions)
 {
     this.entityModelId = entityModelId;
     this.level         = level;
     this.masterId      = masterId;
 }
 public GameFightTaxCollectorInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, Types.GameFightMinimalStats stats, IEnumerable <ushort> previousPositions, ushort firstNameId, ushort lastNameId, byte level)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions)
 {
     this.firstNameId = firstNameId;
     this.lastNameId  = lastNameId;
     this.level       = level;
 }
 public GameFightAIInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, sbyte teamId, bool alive, Types.GameFightMinimalStats stats)
     : base(contextualId, look, disposition, teamId, alive, stats)
 {
 }
Beispiel #24
0
 public GameFightMonsterWithAlignmentInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, sbyte teamId, bool alive, Types.GameFightMinimalStats stats, short creatureGenericId, sbyte creatureGrade, Types.ActorAlignmentInformations alignmentInfos)
     : base(contextualId, look, disposition, teamId, alive, stats, creatureGenericId, creatureGrade)
 {
     this.alignmentInfos = alignmentInfos;
 }
 public GameFightCharacterInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, sbyte teamId, bool alive, Types.GameFightMinimalStats stats, string name, short level, Types.ActorAlignmentInformations alignmentInfos, sbyte breed)
     : base(contextualId, look, disposition, teamId, alive, stats, name)
 {
     this.level          = level;
     this.alignmentInfos = alignmentInfos;
     this.breed          = breed;
 }
Beispiel #26
0
 public GameFightAIInformations(double contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, Types.GameFightMinimalStats stats, IEnumerable <short> previousPositions)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions)
 {
 }
Beispiel #27
0
 public override void Deserialize(IReader reader)
 {
     fighterId = reader.ReadDouble();
     stats     = new Types.GameFightMinimalStats();
     stats.Deserialize(reader);
 }
 public GameFightMonsterInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, sbyte teamId, bool alive, Types.GameFightMinimalStats stats, short creatureGenericId, sbyte creatureGrade)
     : base(contextualId, look, disposition, teamId, alive, stats)
 {
     this.creatureGenericId = creatureGenericId;
     this.creatureGrade     = creatureGrade;
 }
Beispiel #29
0
 public GameFightFighterNamedInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, Types.GameFightMinimalStats stats, IEnumerable <ushort> previousPositions, string name, Types.PlayerStatus status)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions)
 {
     this.name   = name;
     this.status = status;
 }
 public GameFightMonsterWithAlignmentInformations(double contextualId, Types.EntityDispositionInformations disposition, Types.EntityLook look, Types.GameContextBasicSpawnInformation spawnInfo, sbyte wave, Types.GameFightMinimalStats stats, uint[] previousPositions, uint creatureGenericId, sbyte creatureGrade, short creatureLevel, Types.ActorAlignmentInformations alignmentInfos)
     : base(contextualId, disposition, look, spawnInfo, wave, stats, previousPositions, creatureGenericId, creatureGrade, creatureLevel)
 {
     this.alignmentInfos = alignmentInfos;
 }
Beispiel #31
0
 public GameFightMonsterInformations(double contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, Types.GameFightMinimalStats stats, uint[] previousPositions, uint creatureGenericId, sbyte creatureGrade)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions)
 {
     this.creatureGenericId = creatureGenericId;
     this.creatureGrade     = creatureGrade;
 }
 public GameFightCompanionInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, sbyte teamId, sbyte wave, bool alive, Types.GameFightMinimalStats stats, IEnumerable <ushort> previousPositions, sbyte companionGenericId, byte level, int masterId)
     : base(contextualId, look, disposition, teamId, wave, alive, stats, previousPositions)
 {
     this.companionGenericId = companionGenericId;
     this.level    = level;
     this.masterId = masterId;
 }