Exemple #1
0
        public virtual void Deserialize(IDataReader reader)
        {
            var limit = reader.ReadUShort();

            followingCharactersLook = new EntityLook[limit];
            for (int i = 0; i < limit; i++)
            {
                followingCharactersLook[i] = new EntityLook();
                followingCharactersLook[i].Deserialize(reader);
            }
            emoteId      = reader.ReadSByte();
            emoteEndTime = reader.ReadUShort();
            if (emoteEndTime < 0 || emoteEndTime > 255)
            {
                throw new Exception("Forbidden value on emoteEndTime = " + emoteEndTime + ", it doesn't respect the following condition : emoteEndTime < 0 || emoteEndTime > 255");
            }
            restrictions = new ActorRestrictionsInformations();
            restrictions.Deserialize(reader);
            titleId = reader.ReadShort();
            if (titleId < 0)
            {
                throw new Exception("Forbidden value on titleId = " + titleId + ", it doesn't respect the following condition : titleId < 0");
            }
        }
 public GameRolePlayPrismInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition, ActorAlignmentInformations alignInfos) : base(contextualId, look, disposition)
 {
     this.alignInfos = alignInfos;
 }
 public FriendSpouseOnlineInformations(int spouseId, string spouseName, byte spouseLevel, sbyte breed, sbyte sex, EntityLook spouseEntityLook, bool inFight, bool followSpouse, bool pvpEnabled, int mapId, short subAreaId, string guildName, sbyte alignmentSide) : base(spouseId, spouseName, spouseLevel, breed, sex, spouseEntityLook)
 {
     this.inFight       = inFight;
     this.followSpouse  = followSpouse;
     this.pvpEnabled    = pvpEnabled;
     this.mapId         = mapId;
     this.subAreaId     = subAreaId;
     this.guildName     = guildName;
     this.alignmentSide = alignmentSide;
 }
 public GameRolePlayMountInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition, string name, string ownerName, byte level) : base(contextualId, look, disposition, name)
 {
     this.ownerName = ownerName;
     this.level     = level;
 }
 public GameFightMonsterWithAlignmentInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition, sbyte teamId, bool alive, GameFightMinimalStats stats, short creatureGenericId, sbyte creatureGrade, ActorAlignmentInformations alignmentInfos) : base(contextualId, look, disposition, teamId, alive, stats, creatureGenericId, creatureGrade)
 {
     this.alignmentInfos = alignmentInfos;
 }
 public TaxCollectorInformationsInWaitForHelpState(int uniqueId, short firtNameId, short lastNameId, AdditionalTaxCollectorInformations additonalInformation, short worldX, short worldY, short subAreaId, sbyte state, EntityLook look, ProtectedEntityWaitingForHelpInfo waitingForHelpInfo) : base(uniqueId, firtNameId, lastNameId, additonalInformation, worldX, worldY, subAreaId, state, look)
 {
     this.waitingForHelpInfo = waitingForHelpInfo;
 }
Exemple #7
0
 public GameRolePlayHumanoidInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition, string name, HumanInformations humanoidInfo) : base(contextualId, look, disposition, name)
 {
     this.humanoidInfo = humanoidInfo;
 }
Exemple #8
0
 public GameFightCharacterInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition, sbyte teamId, bool alive, GameFightMinimalStats stats, string name, short level, ActorAlignmentInformations alignmentInfos) : base(contextualId, look, disposition, teamId, alive, stats, name)
 {
     this.level          = level;
     this.alignmentInfos = alignmentInfos;
 }
Exemple #9
0
 public GameFightFighterInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition, sbyte teamId, bool alive, GameFightMinimalStats stats) : base(contextualId, look, disposition)
 {
     this.teamId = teamId;
     this.alive  = alive;
     this.stats  = stats;
 }
 public TaxCollectorInformations(int uniqueId, short firtNameId, short lastNameId, AdditionalTaxCollectorInformations additonalInformation, short worldX, short worldY, short subAreaId, sbyte state, EntityLook look)
 {
     this.uniqueId             = uniqueId;
     this.firtNameId           = firtNameId;
     this.lastNameId           = lastNameId;
     this.additonalInformation = additonalInformation;
     this.worldX    = worldX;
     this.worldY    = worldY;
     this.subAreaId = subAreaId;
     this.state     = state;
     this.look      = look;
 }
 public OrientedObjectItemWithLookInRolePlay(short cellId, short objectGID, EntityLook entityLook, sbyte direction) : base(cellId, objectGID, entityLook)
 {
     this.direction = direction;
 }
 public GameFightTaxCollectorInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition, sbyte teamId, bool alive, GameFightMinimalStats stats, short firstNameId, short lastNameId, short level) : base(contextualId, look, disposition, teamId, alive, stats)
 {
     this.firstNameId = firstNameId;
     this.lastNameId  = lastNameId;
     this.level       = level;
 }
Exemple #13
0
 public ObjectItemWithLookInRolePlay(short cellId, short objectGID, EntityLook entityLook) : base(cellId, objectGID)
 {
     this.entityLook = entityLook;
 }
 public GameRolePlayCharacterInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition, string name, HumanInformations humanoidInfo, ActorAlignmentInformations alignmentInfos) : base(contextualId, look, disposition, name, humanoidInfo)
 {
     this.alignmentInfos = alignmentInfos;
 }
 public GameFightAIInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition, sbyte teamId, bool alive, GameFightMinimalStats stats) : base(contextualId, look, disposition, teamId, alive, stats)
 {
 }
 public GameFightFighterNamedInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition, sbyte teamId, bool alive, GameFightMinimalStats stats, string name) : base(contextualId, look, disposition, teamId, alive, stats)
 {
     this.name = name;
 }
Exemple #17
0
 public GameFightMonsterInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition, sbyte teamId, bool alive, GameFightMinimalStats stats, short creatureGenericId, sbyte creatureGrade) : base(contextualId, look, disposition, teamId, alive, stats)
 {
     this.creatureGenericId = creatureGenericId;
     this.creatureGrade     = creatureGrade;
 }
 public MonsterInGroupInformations(int creatureGenericId, short level, EntityLook look)
 {
     this.creatureGenericId = creatureGenericId;
     this.level             = level;
     this.look = look;
 }
Exemple #19
0
 public SubEntity(sbyte bindingPointCategory, sbyte bindingPointIndex, EntityLook subEntityLook)
 {
     this.bindingPointCategory = bindingPointCategory;
     this.bindingPointIndex    = bindingPointIndex;
     this.subEntityLook        = subEntityLook;
 }
Exemple #20
0
 public GameRolePlayActorInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition) : base(contextualId, look, disposition)
 {
 }
Exemple #21
0
 public GameRolePlayMerchantWithGuildInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition, string name, int sellType, GuildInformations guildInformations) : base(contextualId, look, disposition, name, sellType)
 {
     this.guildInformations = guildInformations;
 }
Exemple #22
0
 public FriendSpouseInformations(int spouseId, string spouseName, byte spouseLevel, sbyte breed, sbyte sex, EntityLook spouseEntityLook)
 {
     this.spouseId         = spouseId;
     this.spouseName       = spouseName;
     this.spouseLevel      = spouseLevel;
     this.breed            = breed;
     this.sex              = sex;
     this.spouseEntityLook = spouseEntityLook;
 }
Exemple #23
0
 public GameRolePlayNamedActorInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition, string name) : base(contextualId, look, disposition)
 {
     this.name = name;
 }
Exemple #24
0
 public GameFightMutantInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition, sbyte teamId, bool alive, GameFightMinimalStats stats, string name, sbyte powerLevel) : base(contextualId, look, disposition, teamId, alive, stats, name)
 {
     this.powerLevel = powerLevel;
 }
 public GameRolePlayMutantInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition, string name, HumanInformations humanoidInfo, sbyte powerLevel) : base(contextualId, look, disposition, name, humanoidInfo)
 {
     this.powerLevel = powerLevel;
 }
Exemple #26
0
 public GameContextActorInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition)
 {
     this.contextualId = contextualId;
     this.look         = look;
     this.disposition  = disposition;
 }
 public CharacterMinimalPlusLookInformations(int id, string name, byte level, EntityLook entityLook) : base(id, name, level)
 {
     this.entityLook = entityLook;
 }
Exemple #28
0
 public GameRolePlayMerchantInformations(int contextualId, EntityLook look, EntityDispositionInformations disposition, string name, int sellType) : base(contextualId, look, disposition, name)
 {
     this.sellType = sellType;
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     entityLook = new EntityLook();
     entityLook.Deserialize(reader);
 }