public HumanInformations(EntityLook[] followingCharactersLook, sbyte emoteId, ushort emoteEndTime, ActorRestrictionsInformations restrictions, short titleId) { this.followingCharactersLook = followingCharactersLook; this.emoteId = emoteId; this.emoteEndTime = emoteEndTime; this.restrictions = restrictions; this.titleId = titleId; }
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 HumanWithGuildInformations(EntityLook[] followingCharactersLook, sbyte emoteId, ushort emoteEndTime, ActorRestrictionsInformations restrictions, short titleId, GuildInformations guildInformations) : base(followingCharactersLook, emoteId, emoteEndTime, restrictions, titleId) { this.guildInformations = guildInformations; }