Пример #1
0
 public MountClientData(bool sex, bool isRideable, bool isWild, bool isFecondationReady, double id, int model, int[] ancestor, int[] behaviors, string name, int ownerId, double experience, double experienceForLevel, double experienceForNextLevel, sbyte level, int maxPods, int stamina, int staminaMax, int maturity, int maturityForAdult, int energy, int energyMax, int serenity, int aggressivityMax, int serenityMax, int love, int loveMax, int fecondationTime, int boostLimiter, double boostMax, int reproductionCount, int reproductionCountMax, ObjectEffectInteger[] effectList)
 {
     Sex = sex;
     IsRideable = isRideable;
     IsWild = isWild;
     IsFecondationReady = isFecondationReady;
     Id = id;
     Model = model;
     Ancestor = ancestor;
     Behaviors = behaviors;
     Name = name;
     OwnerId = ownerId;
     Experience = experience;
     ExperienceForLevel = experienceForLevel;
     ExperienceForNextLevel = experienceForNextLevel;
     Level = level;
     MaxPods = maxPods;
     Stamina = stamina;
     StaminaMax = staminaMax;
     Maturity = maturity;
     MaturityForAdult = maturityForAdult;
     Energy = energy;
     EnergyMax = energyMax;
     Serenity = serenity;
     AggressivityMax = aggressivityMax;
     SerenityMax = serenityMax;
     Love = love;
     LoveMax = loveMax;
     FecondationTime = fecondationTime;
     BoostLimiter = boostLimiter;
     BoostMax = boostMax;
     ReproductionCount = reproductionCount;
     ReproductionCountMax = reproductionCountMax;
     EffectList = effectList;
 }
Пример #2
0
 public virtual void Deserialize(BigEndianReader reader)
 {
     byte flag1 = reader.ReadByte();
     Sex = BooleanByteWrapper.GetFlag(flag1, 0);
     IsRideable = BooleanByteWrapper.GetFlag(flag1, 1);
     IsWild = BooleanByteWrapper.GetFlag(flag1, 2);
     IsFecondationReady = BooleanByteWrapper.GetFlag(flag1, 3);
     Id = reader.ReadDouble();
     Model = reader.ReadInt();
     var limit = reader.ReadUShort();
     Ancestor = new int[limit];
     for (int i = 0; i < limit; i++)
     {
         Ancestor[i] = reader.ReadInt();
     }
     limit = reader.ReadUShort();
     Behaviors = new int[limit];
     for (int i = 0; i < limit; i++)
     {
         Behaviors[i] = reader.ReadInt();
     }
     Name = reader.ReadUTF();
     OwnerId = reader.ReadInt();
     Experience = reader.ReadDouble();
     ExperienceForLevel = reader.ReadDouble();
     ExperienceForNextLevel = reader.ReadDouble();
     Level = reader.ReadSByte();
     MaxPods = reader.ReadInt();
     Stamina = reader.ReadInt();
     StaminaMax = reader.ReadInt();
     Maturity = reader.ReadInt();
     MaturityForAdult = reader.ReadInt();
     Energy = reader.ReadInt();
     EnergyMax = reader.ReadInt();
     Serenity = reader.ReadInt();
     AggressivityMax = reader.ReadInt();
     SerenityMax = reader.ReadInt();
     Love = reader.ReadInt();
     LoveMax = reader.ReadInt();
     FecondationTime = reader.ReadInt();
     BoostLimiter = reader.ReadInt();
     BoostMax = reader.ReadDouble();
     ReproductionCount = reader.ReadInt();
     ReproductionCountMax = reader.ReadInt();
     limit = reader.ReadUShort();
     EffectList = new ObjectEffectInteger[limit];
     for (int i = 0; i < limit; i++)
     {
         EffectList[i] = new ObjectEffectInteger();
         EffectList[i].Deserialize(reader);
     }
 }