public GameFightAIInformations(
     double contextualId,
     EntityDispositionInformations disposition,
     EntityLook look,
     GameContextBasicSpawnInformation spawnInfo,
     uint wave,
     GameFightMinimalStats stats,
     List <uint> previousPositions)
     : base(contextualId, disposition, look, spawnInfo, wave, stats, previousPositions)
 {
 }
 public GameContextSummonsInformation(
     SpawnInformation spawnInformation,
     uint wave,
     EntityLook look,
     GameFightMinimalStats stats,
     List <GameContextBasicSpawnInformation> summons)
 {
     this.spawnInformation = spawnInformation;
     this.wave             = wave;
     this.look             = look;
     this.stats            = stats;
     this.summons          = summons;
 }
 public GameFightFighterInformations(
     double contextualId,
     EntityDispositionInformations disposition,
     EntityLook look,
     GameContextBasicSpawnInformation spawnInfo,
     uint wave,
     GameFightMinimalStats stats,
     List <uint> previousPositions)
     : base(contextualId, disposition, look)
 {
     this.spawnInfo         = spawnInfo;
     this.wave              = wave;
     this.stats             = stats;
     this.previousPositions = previousPositions;
 }
示例#4
0
 public GameFightMonsterWithAlignmentInformations(
     double contextualId,
     EntityDispositionInformations disposition,
     EntityLook look,
     GameContextBasicSpawnInformation spawnInfo,
     uint wave,
     GameFightMinimalStats stats,
     List <uint> previousPositions,
     uint creatureGenericId,
     uint creatureGrade,
     uint creatureLevel,
     ActorAlignmentInformations alignmentInfos)
     : base(contextualId, disposition, look, spawnInfo, wave, stats, previousPositions, creatureGenericId, creatureGrade, creatureLevel)
 {
     this.alignmentInfos = alignmentInfos;
 }
 public GameFightEntityInformation(
     double contextualId,
     EntityDispositionInformations disposition,
     EntityLook look,
     GameContextBasicSpawnInformation spawnInfo,
     uint wave,
     GameFightMinimalStats stats,
     List <uint> previousPositions,
     uint entityModelId,
     uint level,
     double masterId)
     : base(contextualId, disposition, look, spawnInfo, wave, stats, previousPositions)
 {
     this.entityModelId = entityModelId;
     this.level         = level;
     this.masterId      = masterId;
 }
示例#6
0
 public GameFightTaxCollectorInformations(
     double contextualId,
     EntityDispositionInformations disposition,
     EntityLook look,
     GameContextBasicSpawnInformation spawnInfo,
     uint wave,
     GameFightMinimalStats stats,
     List <uint> previousPositions,
     uint firstNameId,
     uint lastNameId,
     uint level)
     : base(contextualId, disposition, look, spawnInfo, wave, stats, previousPositions)
 {
     this.firstNameId = firstNameId;
     this.lastNameId  = lastNameId;
     this.level       = level;
 }
示例#7
0
 public GameFightMonsterInformations(
     double contextualId,
     EntityDispositionInformations disposition,
     EntityLook look,
     GameContextBasicSpawnInformation spawnInfo,
     uint wave,
     GameFightMinimalStats stats,
     List <uint> previousPositions,
     uint creatureGenericId,
     uint creatureGrade,
     uint creatureLevel)
     : base(contextualId, disposition, look, spawnInfo, wave, stats, previousPositions)
 {
     this.creatureGenericId = creatureGenericId;
     this.creatureGrade     = creatureGrade;
     this.creatureLevel     = creatureLevel;
 }
 public GameFightMutantInformations(
     double contextualId,
     EntityDispositionInformations disposition,
     EntityLook look,
     GameContextBasicSpawnInformation spawnInfo,
     uint wave,
     GameFightMinimalStats stats,
     List <uint> previousPositions,
     string name,
     PlayerStatus status,
     int leagueId,
     int ladderPosition,
     bool hiddenInPrefight,
     uint powerLevel)
     : base(contextualId, disposition, look, spawnInfo, wave, stats, previousPositions, name, status, leagueId, ladderPosition, hiddenInPrefight)
 {
     this.powerLevel = powerLevel;
 }
 public GameFightFighterNamedInformations(
     double contextualId,
     EntityDispositionInformations disposition,
     EntityLook look,
     GameContextBasicSpawnInformation spawnInfo,
     uint wave,
     GameFightMinimalStats stats,
     List <uint> previousPositions,
     string name,
     PlayerStatus status,
     int leagueId,
     int ladderPosition,
     bool hiddenInPrefight)
     : base(contextualId, disposition, look, spawnInfo, wave, stats, previousPositions)
 {
     this.name             = name;
     this.status           = status;
     this.leagueId         = leagueId;
     this.ladderPosition   = ladderPosition;
     this.hiddenInPrefight = hiddenInPrefight;
 }
        public virtual void Deserialize(IDataReader reader)
        {
            //this.spawnInformation = ProtocolTypeManager.getInstance(SpawnInformation, _id1);
            this.spawnInformation = ProtocolTypeManager.GetInstance <SpawnInformation>((uint)reader.ReadUShort());
            this.spawnInformation.Deserialize(reader);
            this.wave = (uint)reader.ReadByte();
            if (this.wave < 0U)
            {
                throw new Exception("Forbidden value (" + (object)this.wave + ") on element of GameContextSummonsInformation.wave.");
            }
            this.look = new EntityLook();
            this.look.Deserialize(reader);
            this.stats = ProtocolTypeManager.GetInstance <GameFightMinimalStats>((uint)reader.ReadUShort());
            this.stats.Deserialize(reader);
            uint num = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num; ++index)
            {
                GameContextBasicSpawnInformation instance = ProtocolTypeManager.GetInstance <GameContextBasicSpawnInformation>((uint)reader.ReadUShort());
                instance.Deserialize(reader);
                this.summons.Add(instance);
            }
        }
 public GameFightCharacterInformations(
     double contextualId,
     EntityDispositionInformations disposition,
     EntityLook look,
     GameContextBasicSpawnInformation spawnInfo,
     uint wave,
     GameFightMinimalStats stats,
     List <uint> previousPositions,
     string name,
     PlayerStatus status,
     int leagueId,
     int ladderPosition,
     bool hiddenInPrefight,
     uint level,
     ActorAlignmentInformations alignmentInfos,
     int 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 override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            this.spawnInfo = new GameContextBasicSpawnInformation();
            this.spawnInfo.Deserialize(reader);
            this.wave = (uint)reader.ReadByte();
            if (this.wave < 0U)
            {
                throw new Exception("Forbidden value (" + (object)this.wave + ") on element of GameFightFighterInformations.wave.");
            }
            this.stats = ProtocolTypeManager.GetInstance <GameFightMinimalStats>((uint)reader.ReadUShort());
            this.stats.Deserialize(reader);
            uint num1 = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num1; ++index)
            {
                uint num2 = (uint)reader.ReadVarUhShort();
                if (num2 < 0U || num2 > 559U)
                {
                    throw new Exception("Forbidden value (" + (object)num2 + ") on elements of previousPositions.");
                }
                this.previousPositions.Add(num2);
            }
        }