public PartyInvitationMemberInformations GetPartyInvitationMemberInformations() { CharacterRecord record = this.Character.Record; StatsRecord stats = this.Character.StatsRecord; BasicStats current = this.Character.CurrentStats; int id = record.Id; int level = (int)record.Level; string name = record.Name; EntityLook entityLook = this.Character.Look.ToEntityLook(); int breed = (int)(sbyte)record.Breed; bool sex = record.Sex; int mapid = (int)(short)record.MapId; PartyCompanionMemberInformations[] memberInformationsArray = new PartyCompanionMemberInformations[0]; return(new PartyInvitationMemberInformations((uint)id, (byte)level, name, entityLook, (sbyte)breed, sex, (short)this.Character.Map.Position.x, (short)this.Character.Map.Position.y, this.Character.Map.Id, (ushort)this.Character.SubAreaId, memberInformationsArray)); }
public override void Deserialize(IDataReader reader) { GuestId = reader.ReadVarUhLong(); HostId = reader.ReadVarUhLong(); Name = reader.ReadUTF(); GuestLook = new EntityLook(); GuestLook.Deserialize(reader); Breed = reader.ReadSByte(); Sex = reader.ReadBoolean(); Status = ProtocolTypeManager.GetInstance <PlayerStatus>(reader.ReadUShort()); Status.Deserialize(reader); var companionsCount = reader.ReadUShort(); Companions = new List <PartyCompanionBaseInformations>(); for (var companionsIndex = 0; companionsIndex < companionsCount; companionsIndex++) { var objectToAdd = new PartyCompanionBaseInformations(); objectToAdd.Deserialize(reader); Companions.Add(objectToAdd); } }
public override void Deserialize(IDataReader reader) { m_guestLook = new EntityLook(); m_guestLook.Deserialize(reader); m_status = ProtocolTypeManager.GetInstance <PlayerStatus>(reader.ReadUShort()); m_status.Deserialize(reader); int companionsCount = reader.ReadUShort(); int companionsIndex; m_companions = new System.Collections.Generic.List <PartyCompanionBaseInformations>(); for (companionsIndex = 0; (companionsIndex < companionsCount); companionsIndex = (companionsIndex + 1)) { PartyCompanionBaseInformations objectToAdd = new PartyCompanionBaseInformations(); objectToAdd.Deserialize(reader); m_companions.Add(objectToAdd); } m_guestId = reader.ReadVarUhLong(); m_hostId = reader.ReadVarUhLong(); m_name = reader.ReadUTF(); m_breed = reader.ReadByte(); m_sex = reader.ReadBoolean(); }
public PartyMemberInformations GetPartyMemberInformations() { CharacterRecord record = this.Character.Record; StatsRecord stats = this.Character.StatsRecord; BasicStats current = this.Character.CurrentStats; int id = record.Id; int level = (int)record.Level; string name = record.Name; EntityLook entityLook = this.Character.Look.ToEntityLook(); int breed = (int)(sbyte)record.Breed; bool sex = record.Sex; int hp = (int)this.Character.CurrentStats.LifePoints; int maxhp = stats.LifePoints; int regen = (int)1; int align = (int)(sbyte)record.AlignmentSide; int mapid = (int)(short)record.MapId; PlayerStatus status = this.Character.PlayerStatus; PartyCompanionMemberInformations[] memberInformationsArray = new PartyCompanionMemberInformations[0]; return(new PartyMemberInformations((uint)id, (byte)level, name, entityLook, (sbyte)breed, sex, (uint)hp, (uint)maxhp, (ushort)stats.Prospecting, (byte)regen, (ushort)this.Character.Initiative, (sbyte)align, (short)this.Character.Map.Position.x, (short)this.Character.Map.Position.y, this.Character.Map.Id, (ushort)this.Character.SubAreaId, status, (IEnumerable <PartyCompanionMemberInformations>)memberInformationsArray)); }
public override void Deserialize(IDataReader reader) { UniqueId = reader.ReadDouble(); FirtNameId = reader.ReadVarUhShort(); LastNameId = reader.ReadVarUhShort(); AdditionalInfos = new AdditionalTaxCollectorInformations(); AdditionalInfos.Deserialize(reader); WorldX = reader.ReadShort(); WorldY = reader.ReadShort(); SubAreaId = reader.ReadVarUhShort(); State = reader.ReadByte(); Look = new EntityLook(); Look.Deserialize(reader); var complementsCount = reader.ReadUShort(); Complements = new List <TaxCollectorComplementaryInformations>(); for (var complementsIndex = 0; complementsIndex < complementsCount; complementsIndex++) { var objectToAdd = ProtocolTypeManager.GetInstance <TaxCollectorComplementaryInformations>(reader.ReadUShort()); objectToAdd.Deserialize(reader); Complements.Add(objectToAdd); } }
public override void Deserialize(IDataReader reader) { m_additionalInfos = new AdditionalTaxCollectorInformations(); m_additionalInfos.Deserialize(reader); m_look = new EntityLook(); m_look.Deserialize(reader); int complementsCount = reader.ReadUShort(); int complementsIndex; m_complements = new System.Collections.Generic.List <TaxCollectorComplementaryInformations>(); for (complementsIndex = 0; (complementsIndex < complementsCount); complementsIndex = (complementsIndex + 1)) { TaxCollectorComplementaryInformations objectToAdd = ProtocolTypeManager.GetInstance <TaxCollectorComplementaryInformations>((short)reader.ReadUShort()); objectToAdd.Deserialize(reader); m_complements.Add(objectToAdd); } m_uniqueId = reader.ReadInt(); m_firtNameId = reader.ReadVarUhShort(); m_lastNameId = reader.ReadVarUhShort(); m_worldX = reader.ReadShort(); m_worldY = reader.ReadShort(); m_subAreaId = reader.ReadVarUhShort(); m_state = reader.ReadByte(); }
public PartyCompanionBaseInformations(EntityLook entityLook, byte indexId, byte companionGenericId) { m_entityLook = entityLook; m_indexId = indexId; m_companionGenericId = companionGenericId; }
public GameContextRefreshEntityLookMessage(double Id, EntityLook Look) { this.Id = Id; this.Look = Look; }
public void Deserialize(IDataReader reader) { Look = new EntityLook(); Look.Deserialize(reader); }
public CharacterMinimalPlusLookInformations(EntityLook entityLook) { EntityLook = entityLook; }
public GameActionFightChangeLookMessage(ushort actionId, double sourceId, double targetId, EntityLook entityLook) : base(actionId, sourceId) { this.targetId = targetId; this.entityLook = entityLook; }
public GameContextActorInformations(EntityLook look, EntityDispositionInformations disposition, double contextualId) { m_look = look; m_disposition = disposition; m_contextualId = contextualId; }
public TaxCollectorInformations(double uniqueId, ushort firtNameId, ushort lastNameId, AdditionalTaxCollectorInformations additionalInfos, short worldX, short worldY, ushort subAreaId, byte state, EntityLook look, List <TaxCollectorComplementaryInformations> complements) { UniqueId = uniqueId; FirtNameId = firtNameId; LastNameId = lastNameId; AdditionalInfos = additionalInfos; WorldX = worldX; WorldY = worldY; SubAreaId = subAreaId; State = state; Look = look; Complements = complements; }
public TaxCollectorInformations(AdditionalTaxCollectorInformations additionalInfos, EntityLook look, List <TaxCollectorComplementaryInformations> complements, int uniqueId, ushort firtNameId, ushort lastNameId, short worldX, short worldY, ushort subAreaId, byte state) { m_additionalInfos = additionalInfos; m_look = look; m_complements = complements; m_uniqueId = uniqueId; m_firtNameId = firtNameId; m_lastNameId = lastNameId; m_worldX = worldX; m_worldY = worldY; m_subAreaId = subAreaId; m_state = state; }
public GameContextActorInformations(double contextualId, EntityLook look, EntityDispositionInformations disposition) { ContextualId = contextualId; Look = look; Disposition = disposition; }
public AccessoryPreviewMessage(EntityLook Look) { this.Look = Look; }
async Task IHandle <EntityLook> .Handle(EntityLook message) { await SendLookPacket(AttachedObject.GetComponent <ChunkEventBroadcastComponent>().GetGenerator()); }
public void Deserialize(IDataReader reader) { Id = reader.ReadDouble(); Look = new EntityLook(); Look.Deserialize(reader); }
public FriendSpouseInformations(int spouseAccountId, ulong spouseId, string spouseName, byte spouseLevel, sbyte breed, sbyte sex, EntityLook spouseEntityLook, GuildInformations guildInfo, sbyte alignmentSide) { SpouseAccountId = spouseAccountId; SpouseId = spouseId; SpouseName = spouseName; SpouseLevel = spouseLevel; Breed = breed; Sex = sex; SpouseEntityLook = spouseEntityLook; GuildInfo = guildInfo; AlignmentSide = alignmentSide; }
public GameActionFightChangeLookMessage(uint actionId = 0, int sourceId = 0, int targetId = 0, EntityLook entityLook = null) { ActionId = actionId; SourceId = sourceId; TargetId = targetId; EntityLook = entityLook; }
public GameActionFightChangeLookMessage(EntityLook entityLook, double targetId) { m_entityLook = entityLook; m_targetId = targetId; }
public override void Deserialize(IDataReader reader) { this.look = new EntityLook(); this.look.Deserialize(reader); }
public JobCrafterDirectoryEntryMessage(JobCrafterDirectoryEntryPlayerInfo playerInfo, JobCrafterDirectoryEntryJobInfo[] jobInfoList, EntityLook playerLook) { this.playerInfo = playerInfo; this.jobInfoList = jobInfoList; this.playerLook = playerLook; }
public ContactLookMessage(uint requestId, string playerName, double playerId, EntityLook look) { this.requestId = requestId; this.playerName = playerName; this.playerId = playerId; this.look = look; }
public AccessoryPreviewMessage(EntityLook look) { this.look = look; }
public Character(IAccount account) { Account = account; Stats = new CharacterCharacteristicsInformations(); Look = new EntityLook(); Restrictions = new ActorRestrictionsInformations(); Spells = new List <SpellItem>(); Status = CharacterStatus.Disconnected; Jobs = new List <JobExperience>(); GatherManager = new GatherManager(Account); PathManager = new PathManager(Account); Achievement = new Achievement(Account); Alliance = new Alliance(Account); BidHouse = new BidHouse(Account); Chat = new Chat(Account); Map = new Map(Account); Fight = new Fight(Account); Friend = new Friend(Account); Guild = new Guild(Account); Inventory = new Inventory(Account); Party = new Party(Account); #region Choice Handler account.Network.RegisterPacket <BasicCharactersListMessage>(HandleBasicCharactersListMessage, MessagePriority.VeryHigh); account.Network.RegisterPacket <CharactersListMessage>(HandleCharactersListMessage, MessagePriority.VeryHigh); account.Network.RegisterPacket <CharacterSelectedSuccessMessage>(HandleCharacterSelectedSuccessMessage, MessagePriority.VeryHigh); #endregion Choice Handler #region Creation Handler account.Network.RegisterPacket <CharacterCanBeCreatedResultMessage>(HandleCharacterCanBeCreatedResultMessage, MessagePriority.VeryHigh); account.Network.RegisterPacket <CharacterCreationResultMessage>(HandleCharacterCreationResultMessage, MessagePriority.VeryHigh); account.Network.RegisterPacket <CharacterNameSuggestionFailureMessage>( HandleCharacterNameSuggestionFailureMessage, MessagePriority.VeryHigh); account.Network.RegisterPacket <CharacterNameSuggestionSuccessMessage>( HandleCharacterNameSuggestionSuccessMessage, MessagePriority.VeryHigh); #endregion Creation Handler #region Deletion Handler account.Network.RegisterPacket <CharacterDeletionErrorMessage>(HandleCharacterDeletionErrorMessage, MessagePriority.VeryHigh); #endregion Deletion Handler #region Stats Handler account.Network.RegisterPacket <CharacterStatsListMessage>(HandleCharacterStatsListMessage, MessagePriority.VeryHigh); account.Network.RegisterPacket <CharacterExperienceGainMessage>(HandleCharacterExperienceGainMessage, MessagePriority.VeryHigh); account.Network.RegisterPacket <CharacterLevelUpInformationMessage>(HandleCharacterLevelUpInformationMessage, MessagePriority.VeryHigh); account.Network.RegisterPacket <CharacterLevelUpMessage>(HandleCharacterLevelUpMessage, MessagePriority.VeryHigh); account.Network.RegisterPacket <LifePointsRegenEndMessage>(HandleLifePointsRegenEndMessage, MessagePriority.VeryHigh); account.Network.RegisterPacket <UpdateLifePointsMessage>(HandleUpdateLifePointsMessage, MessagePriority.VeryHigh); #endregion Stats Handler #region Initialization Handler account.Network.RegisterPacket <CharacterLoadingCompleteMessage>(HandleCharacterLoadingCompleteMessage, MessagePriority.VeryHigh); account.Network.RegisterPacket <OnConnectionEventMessage>(HandleOnConnectionEventMessage, MessagePriority.VeryHigh); account.Network.RegisterPacket <SetCharacterRestrictionsMessage>(HandleSetCharacterRestrictionsMessage, MessagePriority.VeryHigh); #endregion Initialization Handler Account.Network.RegisterPacket <MapComplementaryInformationsDataMessage>( HandleMapComplementaryInformationsDataMessage, MessagePriority.Normal); Account.Network.RegisterPacket <GameContextRefreshEntityLookMessage>( HandleGameContextRefreshEntityLookMessage, MessagePriority.Normal); }
public JobCrafterDirectoryEntryMessage(JobCrafterDirectoryEntryPlayerInfo playerInfo, List <JobCrafterDirectoryEntryJobInfo> jobInfoList, EntityLook playerLook) { m_playerInfo = playerInfo; m_jobInfoList = jobInfoList; m_playerLook = playerLook; }
public override void Deserialize(ICustomDataInput reader) { m_look = new EntityLook(); m_look.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); EntityLook = new EntityLook(); EntityLook.Deserialize(reader); }
public SubEntity(byte bindingPointCategory, byte bindingPointIndex, EntityLook subEntityLook) { BindingPointCategory = bindingPointCategory; BindingPointIndex = bindingPointIndex; SubEntityLook = subEntityLook; }