public void Update(GameFightMinimalStats stats)
        {
            if (stats == null)
            {
                throw new ArgumentNullException("stats");
            }

            Health    = stats.lifePoints;
            MaxHealth = stats.maxLifePoints;
            CurrentAP = stats.actionPoints;
            CurrentMP = stats.movementPoints;

            this[PlayerField.AP] = stats.maxActionPoints;
            this[PlayerField.MP] = stats.maxMovementPoints;
            this[PlayerField.PermanentDamagePercent]  = stats.permanentDamagePercent;
            this[PlayerField.TackleBlock]             = stats.tackleBlock;
            this[PlayerField.TackleEvade]             = stats.tackleEvade;
            this[PlayerField.DodgeAPProbability]      = stats.dodgePALostProbability;
            this[PlayerField.DodgeMPProbability]      = stats.dodgePMLostProbability;
            this[PlayerField.NeutralResistPercent]    = stats.neutralElementResistPercent;
            this[PlayerField.EarthResistPercent]      = stats.earthElementResistPercent;
            this[PlayerField.WaterResistPercent]      = stats.waterElementResistPercent;
            this[PlayerField.AirResistPercent]        = stats.airElementResistPercent;
            this[PlayerField.FireResistPercent]       = stats.fireElementResistPercent;
            this[PlayerField.NeutralElementReduction] = stats.neutralElementReduction;
            this[PlayerField.EarthElementReduction]   = stats.earthElementReduction;
            this[PlayerField.WaterElementReduction]   = stats.waterElementReduction;
            this[PlayerField.AirElementReduction]     = stats.airElementReduction;
            this[PlayerField.FireElementReduction]    = stats.fireElementReduction;

            InvisibilityState = (GameActionFightInvisibilityStateEnum)stats.invisibilityState;
        }
Exemple #2
0
        public GameFightCharacterInformations GetGameFightCharacterInformations()
        {
            var character      = this.Character;
            var characteristic = character.Characteristics;
            GameContextActorPositionInformations positionInformations = new GameContextActorPositionInformations(this.Id, new EntityDispositionInformations(this.CellId, 1));
            GameFightMinimalStats gameFightMinimalStats =
                this.Fight != null && this.Fight.FightState == FightStateEnum.FIGHT_CHOICE_PLACEMENT ?
                new GameFightMinimalStatsPreparation((uint)this.Life, (uint)this.LifeBase, (uint)this.LifeBase, (uint)characteristic.permanentDamagePercent.Total, (uint)this.ShieldPoints, this.AP, this.AP, this.PM, this.PM, 0, false, this.NeutralPercentResistance, this.StrengthPercentResistance, this.WaterPercentResistance,
                                                     this.AgilityPercentResistance, this.IntelligencePercentResistance, this.NeutralResistance, this.StrengthResistance, this.WaterResistance, this.AgilityResistance, this.IntelligenceResistance,
                                                     characteristic.criticalDamageReduction.Total, characteristic.pushDamageReduction.Total, characteristic.pvpNeutralElementResistPercent.Total, characteristic.pvpEarthElementResistPercent.Total, characteristic.pvpWaterElementResistPercent.Total,
                                                     characteristic.pvpAirElementResistPercent.Total, characteristic.pvpFireElementResistPercent.Total, characteristic.pvpNeutralElementReduction.Total, characteristic.pvpEarthElementReduction.Total, characteristic.pvpWaterElementReduction.Total, characteristic.pvpAirElementReduction.Total, characteristic.pvpFireElementReduction.Total, (uint)characteristic.dodgePALostProbability.Total, (uint)characteristic.dodgePMLostProbability.Total,
                                                     characteristic.tackleBlock.Total, characteristic.tackleEvade.Total, 0, (uint)GameActionFightInvisibilityStateEnum.VISIBLE, (uint)characteristic.meleeDamageReceivedPercent.Total, (uint)characteristic.rangedDamageReceivedPercent.Total, (uint)characteristic.weaponDamageReceivedPercent.Total, (uint)characteristic.spellDamageReceivedPercent.Total, (uint)this.Initiative)

                    :

                new GameFightMinimalStats((uint)this.Life, (uint)this.LifeBase, (uint)this.LifeBase, (uint)characteristic.permanentDamagePercent.Total, (uint)this.ShieldPoints, this.AP, this.AP, this.PM, this.PM, 0, false, this.NeutralPercentResistance, this.StrengthPercentResistance, this.WaterPercentResistance,
                                          this.AgilityPercentResistance, this.IntelligencePercentResistance, this.NeutralResistance, this.StrengthResistance, this.WaterResistance, this.AgilityResistance, this.IntelligenceResistance,
                                          characteristic.criticalDamageReduction.Total, characteristic.pushDamageReduction.Total, characteristic.pvpNeutralElementResistPercent.Total, characteristic.pvpEarthElementResistPercent.Total, characteristic.pvpWaterElementResistPercent.Total,
                                          characteristic.pvpAirElementResistPercent.Total, characteristic.pvpFireElementResistPercent.Total, characteristic.pvpNeutralElementReduction.Total, characteristic.pvpEarthElementReduction.Total, characteristic.pvpWaterElementReduction.Total, characteristic.pvpAirElementReduction.Total, characteristic.pvpFireElementReduction.Total, (uint)characteristic.dodgePALostProbability.Total, (uint)characteristic.dodgePMLostProbability.Total,
                                          characteristic.tackleBlock.Total, characteristic.tackleEvade.Total, 0, (uint)GameActionFightInvisibilityStateEnum.VISIBLE, (uint)characteristic.meleeDamageReceivedPercent.Total, (uint)characteristic.rangedDamageReceivedPercent.Total, (uint)characteristic.weaponDamageReceivedPercent.Total, (uint)characteristic.spellDamageReceivedPercent.Total);
            //ActorExtendedAlignmentInformations actorExtendedAlignment = new ActorExtendedAlignmentInformations(0, 0, 0, 0, 0, 0, 0, 0);
            ActorAlignmentInformations actorExtendedAlignment = new ActorAlignmentInformations(0, 0, 0, 0);


            return(new GameFightCharacterInformations((double)this.Id, new EntityDispositionInformations(this.CellId, 1), character.Look, new GameContextBasicSpawnInformation(0, true, positionInformations), 0, gameFightMinimalStats, new List <uint>(), character.Name, new PlayerStatus(1), -1, 0, false, (uint)character.Level, actorExtendedAlignment, character.Breed, character.Sex));
        }
Exemple #3
0
 public Monster(double id, int cellId, GameFightMinimalStats stats, uint teamId, bool isAlive,
                ushort creatureGenericId, byte creatureGrade) : base(id, cellId, stats, teamId, isAlive)
 {
     CreatureGenericId = creatureGenericId;
     CreatureGrade     = creatureGrade;
     Name = D2OParsing.GetMonsterName(creatureGenericId);
 }
        public void Update(GameFightMinimalStats stats)
        {
            if (stats == null)
            {
                throw new ArgumentNullException("stats");
            }
            //Summoner = stats.summoner; already processed at MonsterFighter / CharacterFighter level
            //Summoned = stats.summoned;
            Health                  = stats.lifePoints;
            MaxHealth               = stats.maxLifePoints;
            MaxHealthBase           = stats.baseMaxLifePoints;
            CurrentAP               = stats.actionPoints;
            CurrentMP               = stats.movementPoints;
            MaxAP                   = stats.maxActionPoints;
            MaxMP                   = stats.maxMovementPoints;
            PermanentDamagePercent  = stats.permanentDamagePercent;
            TackleBlock             = stats.tackleBlock;
            TackleEvade             = stats.tackleEvade;
            DodgeAPProbability      = stats.dodgePALostProbability;
            DodgeMPProbability      = stats.dodgePMLostProbability;
            NeutralResistPercent    = stats.neutralElementResistPercent;
            EarthResistPercent      = stats.earthElementResistPercent;
            WaterResistPercent      = stats.waterElementResistPercent;
            AirResistPercent        = stats.airElementResistPercent;
            FireResistPercent       = stats.fireElementResistPercent;
            NeutralElementReduction = stats.neutralElementReduction;
            EarthElementReduction   = stats.earthElementReduction;
            WaterElementReduction   = stats.waterElementReduction;
            AirElementReduction     = stats.airElementReduction;
            FireElementReduction    = stats.fireElementReduction;
            //logger.Debug("{0}/{1} AP, {2}/{3} MP, {4}/{5} HP", CurrentAP, MaxAP, CurrentMP, MaxMP, Health, MaxHealth);

            InvisibilityState = (GameActionFightInvisibilityStateEnum)stats.invisibilityState;
        }
Exemple #5
0
 public Companion(double id, int cellId, GameFightMinimalStats stats, uint teamId, bool isAlive,
                  byte companionGenericId, int level, double masterId) : base(id, cellId, stats, teamId, isAlive)
 {
     Level = level;
     CompanionGenericId = companionGenericId;
     MasterId           = masterId;
     Name = D2OParsing.GetMonsterName(CompanionGenericId);
 }
 public RefreshCharacterStatsMessage(
     double fighterId,
     GameFightMinimalStats stats
     )
 {
     FighterId = fighterId;
     Stats     = stats;
 }
 private void HandleCharacterSelectedSuccessMessages(GameFightShowFighterMessage message, ConnectedHost source)
 {
     if (source.Bot.Game.Player.PlayerBaseInformations.Id == message.informations.contextualId)
     {
         Stats = message.informations.stats;
     }
     OnUpdated();
 }
Exemple #8
0
 public Fighter(double id, int cellId, GameFightMinimalStats stats, uint teamId, bool isAlive) : base(id, cellId)
 {
     Stats          = stats;
     TeamId         = teamId;
     IsAlive        = isAlive;
     LifePoints     = stats.LifePoints;
     MaxLifePoints  = stats.MaxLifePoints;
     ActionPoints   = stats.ActionPoints;
     MovementPoints = stats.MovementPoints;
 }
Exemple #9
0
 public override void Deserialize(IDataReader reader)
 {
     this.fighterId = reader.ReadDouble();
     if (this.fighterId < -9.00719925474099E+15 || this.fighterId > 9.00719925474099E+15)
     {
         throw new Exception("Forbidden value (" + (object)this.fighterId + ") on element of RefreshCharacterStatsMessage.fighterId.");
     }
     this.stats = new GameFightMinimalStats();
     this.stats.Deserialize(reader);
 }
Exemple #10
0
 public BFighter(int id, int cellId, int actionPoints, GameFightMinimalStats gameFightMinimalStats, bool isAlive, int lifePoints, int maxLifePoints, int movementPoints, uint teamId, int creatureId) : base(id, cellId)
 {
     ActionPoints          = actionPoints;
     GameFightMinimalStats = gameFightMinimalStats;
     IsAlive           = isAlive;
     LifePoints        = lifePoints;
     MaxLifePoints     = maxLifePoints;
     MovementPoints    = movementPoints;
     TeamId            = teamId;
     CreatureGenericId = creatureId;
 }
 private void HandleCharacterSelectedSuccessMessages(GameFightSynchronizeMessage message, ConnectedHost source)
 {
     foreach (GameFightFighterInformations infos in message.fighters)
     {
         if (infos.contextualId == source.Bot.Game.Player.PlayerBaseInformations.Id)
         {
             Stats = infos.stats;
         }
     }
     OnUpdated();
 }
Exemple #12
0
 public BFighter(int id, int cellId, int actionPoints, GameFightMinimalStats gameFightMinimalStats, bool isAlive, int lifePoints, int maxLifePoints, int movementPoints, uint teamId, int creatureId)
     : base(id, cellId)
 {
     ActionPoints = actionPoints;
     GameFightMinimalStats = gameFightMinimalStats;
     IsAlive = isAlive;
     LifePoints = lifePoints;
     MaxLifePoints = maxLifePoints;
     MovementPoints = movementPoints;
     TeamId = teamId;
     CreatureGenericId = creatureId;
 }
Exemple #13
0
 public GameFightMonsterInformations(int contextualId, EntityLook look, FightEntityDispositionInformations disposition, int teamId, bool alive, GameFightMinimalStats stats, int creatureGenericId, int creatureGrade, int monsterLevel)
 {
     this.contextualId      = contextualId;
     this.look              = look;
     this.disposition       = disposition;
     this.teamId            = teamId;
     this.alive             = alive;
     this.stats             = stats;
     this.creatureGenericId = creatureGenericId;
     this.creatureGrade     = creatureGrade;
     this.monsterLevel      = monsterLevel;
 }
Exemple #14
0
        public GameFightMonsterInformations GetGameFightMonsterInformations()
        {
            GameContextActorPositionInformations positionInformations = new GameContextActorPositionInformations((double)this.Id, new EntityDispositionInformations(this.CellId, 1));

            var characteristics = this.Monster.Grades[0];

            GameFightMinimalStats gameFightMinimalStats =

                this.Fight != null && this.Fight.FightState == FightStateEnum.FIGHT_CHOICE_PLACEMENT ?

                new GameFightMinimalStatsPreparation((uint)this.Life, (uint)this.LifeBase, (uint)this.LifeBase, 0, (uint)this.ShieldPoints, this.AP, characteristics.ActionPoints, this.PM, characteristics.MovementPoints, 0, false,
                                                     this.NeutralPercentResistance, this.StrengthPercentResistance, this.WaterPercentResistance, this.AgilityPercentResistance, this.IntelligencePercentResistance, 0,
                                                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (uint)GameActionFightInvisibilityStateEnum.VISIBLE, 100, 100, 100, 100, (uint)this.Initiative)

                :

                new GameFightMinimalStats((uint)this.Life, (uint)this.LifeBase, (uint)this.LifeBase, 0, (uint)this.ShieldPoints, this.AP, characteristics.ActionPoints, this.PM, characteristics.MovementPoints, 0, false,
                                          this.NeutralPercentResistance, this.StrengthPercentResistance, this.WaterPercentResistance, this.AgilityPercentResistance, this.IntelligencePercentResistance, 0,
                                          0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (uint)GameActionFightInvisibilityStateEnum.VISIBLE, 100, 100, 100, 100);

            return(new GameFightMonsterInformations((double)this.Id, new EntityDispositionInformations(this.CellId, 1), Look.Parse(this.Monster.Look).GetEntityLook(), new GameContextBasicSpawnInformation(1, true, positionInformations), 0, gameFightMinimalStats, new List <uint>(), (uint)this.Monster.Id, this.Monster.Grades[0].Grade, this.Monster.Grades[0].Level));
        }
Exemple #15
0
        public static object GetInstance(uint typeId)
        {
            object obj = null;

            switch (typeId)
            {
            case 11:
                obj = new Types.Version();
                break;

            case 25:
                obj = new GameServerInformations();
                break;

            case 55:
                obj = new EntityLook();
                break;

            case 54:
                obj = new SubEntity();
                break;

            case 110:
                obj = new CharacterMinimalInformations();
                break;

            case 163:
                obj = new CharacterMinimalPlusLookInformations();
                break;

            case 193:
                obj = new CharacterMinimalPlusLookAndGradeInformations();
                break;

            case 45:
                obj = new CharacterBaseInformations();
                break;

            case 212:
                obj = new CharacterToRecolorInformation();
                break;

            case 86:
                obj = new CharacterHardcoreInformations();
                break;

            case 63:
                obj = new EntityMovementInformations();
                break;

            case 60:
                obj = new EntityDispositionInformations();
                break;

            case 107:
                obj = new IdentifiedEntityDispositionInformations();
                break;

            case 217:
                obj = new FightEntityDispositionInformations();
                break;

            case 127:
                obj = new GuildInformations();
                break;

            case 204:
                obj = new ActorRestrictionsInformations();
                break;

            case 201:
                obj = new ActorAlignmentInformations();
                break;

            case 183:
                obj = new PaddockContentInformations();
                break;

            case 184:
                obj = new MountInformationsForPaddock();
                break;

            case 202:
                obj = new ActorExtendedAlignmentInformations();
                break;

            case 135:
                obj = new AlignmentBonusInformations();
                break;

            case 142:
                obj = new PrismSubAreaInformation();
                break;

            case 152:
                obj = new PrismConquestInformation();
                break;

            case 187:
                obj = new TaxCollectorName();
                break;

            case 96:
                obj = new TaxCollectorBasicInformations();
                break;

            case 4:
                obj = new CharacterBaseCharacteristic();
                break;

            case 215:
                obj = new CharacterSpellModification();
                break;

            case 8:
                obj = new CharacterCharacteristicsInformations();
                break;

            case 117:
                obj = new FightExternalInformations();
                break;

            case 43:
                obj = new FightCommonInformations();
                break;

            case 44:
                obj = new FightTeamMemberInformations();
                break;

            case 13:
                obj = new FightTeamMemberCharacterInformations();
                break;

            case 6:
                obj = new FightTeamMemberMonsterInformations();
                break;

            case 177:
                obj = new FightTeamMemberTaxCollectorInformations();
                break;

            case 20:
                obj = new FightOptionsInformations();
                break;

            case 116:
                obj = new AbstractFightTeamInformations();
                break;

            case 33:
                obj = new FightTeamInformations();
                break;

            case 115:
                obj = new FightTeamLightInformations();
                break;

            case 31:
                obj = new GameFightMinimalStats();
                break;

            case 41:
                obj = new FightLoot();
                break;

            case 16:
                obj = new FightResultListEntry();
                break;

            case 189:
                obj = new FightResultFighterListEntry();
                break;

            case 191:
                obj = new FightResultAdditionalData();
                break;

            case 192:
                obj = new FightResultExperienceData();
                break;

            case 190:
                obj = new FightResultPvpData();
                break;

            case 24:
                obj = new FightResultPlayerListEntry();
                break;

            case 216:
                obj = new FightResultMutantListEntry();
                break;

            case 84:
                obj = new FightResultTaxCollectorListEntry();
                break;

            case 206:
                obj = new AbstractFightDispellableEffect();
                break;

            case 208:
                obj = new FightDispellableEffectExtendedInformations();
                break;

            case 209:
                obj = new FightTemporaryBoostEffect();
                break;

            case 210:
                obj = new FightTriggeredEffect();
                break;

            case 207:
                obj = new FightTemporarySpellBoostEffect();
                break;

            case 211:
                obj = new FightTemporaryBoostWeaponDamagesEffect();
                break;

            case 214:
                obj = new FightTemporaryBoostStateEffect();
                break;

            case 205:
                obj = new GameFightSpellCooldown();
                break;

            case 7:
                obj = new Item();
                break;

            case 49:
                obj = new SpellItem();
                break;

            case 76:
                obj = new ObjectEffect();
                break;

            case 74:
                obj = new ObjectEffectString();
                break;

            case 70:
                obj = new ObjectEffectInteger();
                break;

            case 82:
                obj = new ObjectEffectMinMax();
                break;

            case 73:
                obj = new ObjectEffectDice();
                break;

            case 72:
                obj = new ObjectEffectDate();
                break;

            case 75:
                obj = new ObjectEffectDuration();
                break;

            case 71:
                obj = new ObjectEffectCreature();
                break;

            case 81:
                obj = new ObjectEffectLadder();
                break;

            case 179:
                obj = new ObjectEffectMount();
                break;

            case 178:
                obj = new MountClientData();
                break;

            case 168:
                obj = new ItemDurability();
                break;

            case 85:
                obj = new GameActionMarkedCell();
                break;

            case 123:
                obj = new GoldItem();
                break;

            case 124:
                obj = new ObjectItemMinimalInformation();
                break;

            case 119:
                obj = new ObjectItemQuantity();
                break;

            case 134:
                obj = new ObjectItemNotInContainer();
                break;

            case 37:
                obj = new ObjectItem();
                break;

            case 120:
                obj = new ObjectItemToSell();
                break;

            case 164:
                obj = new ObjectItemToSellInBid();
                break;

            case 198:
                obj = new ObjectItemInRolePlay();
                break;

            case 197:
                obj = new ObjectItemWithLookInRolePlay();
                break;

            case 199:
                obj = new OrientedObjectItemWithLookInRolePlay();
                break;

            case 185:
                obj = new PaddockItem();
                break;

            case 121:
                obj = new SellerBuyerDescriptor();
                break;

            case 122:
                obj = new BidExchangerObjectInfo();
                break;

            case 52:
                obj = new StartupActionAddObject();
                break;

            case 106:
                obj = new IgnoredInformations();
                break;

            case 105:
                obj = new IgnoredOnlineInformations();
                break;

            case 78:
                obj = new FriendInformations();
                break;

            case 92:
                obj = new FriendOnlineInformations();
                break;

            case 77:
                obj = new FriendSpouseInformations();
                break;

            case 93:
                obj = new FriendSpouseOnlineInformations();
                break;

            case 88:
                obj = new GuildMember();
                break;

            case 87:
                obj = new GuildEmblem();
                break;

            case 80:
                obj = new InteractiveElement();
                break;

            case 108:
                obj = new StatedElement();
                break;

            case 200:
                obj = new MapObstacle();
                break;

            case 213:
                obj = new PartyUpdateCommonsInformations();
                break;

            case 90:
                obj = new PartyMemberInformations();
                break;

            case 97:
                obj = new JobCrafterDirectorySettings();
                break;

            case 194:
                obj = new JobCrafterDirectoryEntryPlayerInfo();
                break;

            case 195:
                obj = new JobCrafterDirectoryEntryJobInfo();
                break;

            case 196:
                obj = new JobCrafterDirectoryListEntry();
                break;

            case 101:
                obj = new JobDescription();
                break;

            case 102:
                obj = new SkillActionDescription();
                break;

            case 103:
                obj = new SkillActionDescriptionTimed();
                break;

            case 99:
                obj = new SkillActionDescriptionCollect();
                break;

            case 100:
                obj = new SkillActionDescriptionCraft();
                break;

            case 104:
                obj = new SkillActionDescriptionCraftExtended();
                break;

            case 98:
                obj = new JobExperience();
                break;

            case 111:
                obj = new HouseInformations();
                break;

            case 112:
                obj = new HouseInformationsExtended();
                break;

            case 170:
                obj = new HouseInformationsForGuild();
                break;

            case 132:
                obj = new PaddockInformations();
                break;

            case 130:
                obj = new PaddockBuyableInformations();
                break;

            case 133:
                obj = new PaddockAbandonnedInformations();
                break;

            case 131:
                obj = new PaddockPrivateInformations();
                break;

            case 150:
                obj = new GameContextActorInformations();
                break;

            case 141:
                obj = new GameRolePlayActorInformations();
                break;

            case 157:
                obj = new HumanInformations();
                break;

            case 153:
                obj = new HumanWithGuildInformations();
                break;

            case 154:
                obj = new GameRolePlayNamedActorInformations();
                break;

            case 159:
                obj = new GameRolePlayHumanoidInformations();
                break;

            case 36:
                obj = new GameRolePlayCharacterInformations();
                break;

            case 3:
                obj = new GameRolePlayMutantInformations();
                break;

            case 129:
                obj = new GameRolePlayMerchantInformations();
                break;

            case 146:
                obj = new GameRolePlayMerchantWithGuildInformations();
                break;

            case 180:
                obj = new GameRolePlayMountInformations();
                break;

            case 147:
                obj = new TaxCollectorStaticInformations();
                break;

            case 148:
                obj = new GameRolePlayTaxCollectorInformations();
                break;

            case 167:
                obj = new TaxCollectorInformations();
                break;

            case 166:
                obj = new TaxCollectorInformationsInWaitForHelpState();
                break;

            case 186:
                obj = new ProtectedEntityWaitingForHelpInfo();
                break;

            case 169:
                obj = new TaxCollectorFightersInformation();
                break;

            case 165:
                obj = new AdditionalTaxCollectorInformations();
                break;

            case 144:
                obj = new MonsterInGroupInformations();
                break;

            case 140:
                obj = new GroupMonsterStaticInformations();
                break;

            case 160:
                obj = new GameRolePlayGroupMonsterInformations();
                break;

            case 155:
                obj = new NpcStaticInformations();
                break;

            case 156:
                obj = new GameRolePlayNpcInformations();
                break;

            case 161:
                obj = new GameRolePlayPrismInformations();
                break;

            case 143:
                obj = new GameFightFighterInformations();
                break;

            case 158:
                obj = new GameFightFighterNamedInformations();
                break;

            case 46:
                obj = new GameFightCharacterInformations();
                break;

            case 50:
                obj = new GameFightMutantInformations();
                break;

            case 151:
                obj = new GameFightAIInformations();
                break;

            case 29:
                obj = new GameFightMonsterInformations();
                break;

            case 203:
                obj = new GameFightMonsterWithAlignmentInformations();
                break;

            case 48:
                obj = new GameFightTaxCollectorInformations();
                break;

            case 174:
                obj = new MapCoordinates();
                break;

            case 176:
                obj = new MapCoordinatesExtended();
                break;

            case 175:
                obj = new AtlasPointsInformations();
                break;

            default:
                throw new Exception("Type with id " + typeId + " is unknown.");
            }
            return(obj);
        }
 public override void Deserialize(ICustomDataInput reader)
 {
     FighterId = reader.ReadDouble();
     Stats     = new GameFightMinimalStats();
     Stats.Deserialize(reader);
 }
Exemple #17
0
 public void Deserialize(IDataReader reader)
 {
     FighterId = reader.ReadDouble();
     Stats     = new GameFightMinimalStats();
     Stats.Deserialize(reader);
 }
Exemple #18
0
 public RefreshCharacterStatsMessage(GameFightMinimalStats stats, double fighterId)
 {
     m_stats     = stats;
     m_fighterId = fighterId;
 }
 public MinimalStats(GameFightMinimalStats stats)
 {
     Update(stats);
 }
Exemple #20
0
 public override void Deserialize(IDataReader reader)
 {
     m_stats = new GameFightMinimalStats();
     m_stats.Deserialize(reader);
     m_fighterId = reader.ReadDouble();
 }
 public RefreshCharacterStatsMessage(double FighterId, GameFightMinimalStats Stats)
 {
     this.FighterId = FighterId;
     this.Stats     = Stats;
 }