public static SetAFKMessage read(BinaryReader binaryReader) { var newObj = new SetAFKMessage(); newObj.i_strMessage = PStringChar.read(binaryReader); return(newObj); }
public static Talk read(BinaryReader binaryReader) { var newObj = new Talk(); newObj.MessageText = PStringChar.read(binaryReader); return(newObj); }
public static PopUpString read(BinaryReader binaryReader) { var newObj = new PopUpString(); newObj.PopUpMessage = PStringChar.read(binaryReader); return(newObj); }
public static VictimDeathNotice read(BinaryReader binaryReader) { VictimDeathNotice newObj = new VictimDeathNotice(); newObj.DeathMessageText = PStringChar.read(binaryReader); return(newObj); }
public static PageData read(BinaryReader binaryReader) { PageData newObj = new PageData(); var startPosition = binaryReader.BaseStream.Position; newObj.authorID = binaryReader.ReadUInt32(); newObj.authorName = PStringChar.read(binaryReader); newObj.authorAccount = PStringChar.read(binaryReader); newObj.flags = binaryReader.ReadUInt32(); if ((newObj.flags >> 16) == 0xFFFF) { if ((ushort)newObj.flags == 2) { newObj.textIncluded = binaryReader.ReadUInt32(); newObj.ignoreAuthor = binaryReader.ReadUInt32(); } else { newObj.textIncluded = newObj.flags; newObj.ignoreAuthor = 0; } } if (newObj.textIncluded != 0) { newObj.pageText = PStringChar.read(binaryReader); } newObj.Length = (int)(binaryReader.BaseStream.Position - startPosition); return(newObj); }
public static AddAllegianceBan read(BinaryReader binaryReader) { AddAllegianceBan newObj = new AddAllegianceBan(); newObj.i_char_name = PStringChar.read(binaryReader); return(newObj); }
public static RemoveAllegianceOfficer read(BinaryReader binaryReader) { RemoveAllegianceOfficer newObj = new RemoveAllegianceOfficer(); newObj.i_char_name = PStringChar.read(binaryReader); return(newObj); }
public static SetAllegianceName read(BinaryReader binaryReader) { SetAllegianceName newObj = new SetAllegianceName(); newObj.i_msg = PStringChar.read(binaryReader); return(newObj); }
public static SetMotd read(BinaryReader binaryReader) { SetMotd newObj = new SetMotd(); newObj.i_msg = PStringChar.read(binaryReader); return(newObj); }
public static AllegianceHierarchy read(BinaryReader binaryReader) { AllegianceHierarchy newObj = new AllegianceHierarchy(); newObj.packed_nodes = binaryReader.ReadUInt16(); newObj.m_oldVersion = (AllegianceVersion)binaryReader.ReadUInt16(); newObj.m_AllegianceOfficers = PackableHashTable <uint, uint> .read(binaryReader); newObj.m_OfficerTitles = PList <PStringChar> .read(binaryReader); newObj.m_monarchBroadcastTime = binaryReader.ReadInt32(); newObj.m_monarchBroadcastsToday = binaryReader.ReadUInt32(); newObj.m_spokesBroadcastTime = binaryReader.ReadInt32(); newObj.m_spokesBroadcastsToday = binaryReader.ReadUInt32(); newObj.m_motd = PStringChar.read(binaryReader); newObj.m_motdSetBy = PStringChar.read(binaryReader); newObj.m_chatRoomID = binaryReader.ReadUInt32(); newObj.m_BindPoint = Position.read(binaryReader); newObj.m_AllegianceName = PStringChar.read(binaryReader); newObj.m_NameLastSetTime = binaryReader.ReadInt32(); newObj.m_isLocked = binaryReader.ReadUInt32(); newObj.m_ApprovedVassal = binaryReader.ReadUInt32(); if (newObj.packed_nodes > 0) { newObj.m_pMonarch = AllegianceNode.read(binaryReader, newObj.packed_nodes); } return(newObj); }
public static AllegianceData read(BinaryReader binaryReader) { AllegianceData newObj = new AllegianceData(); newObj._id = binaryReader.ReadUInt32(); newObj._cp_cached = binaryReader.ReadUInt32(); newObj._cp_tithed = binaryReader.ReadUInt32(); newObj._bitfield = binaryReader.ReadUInt32(); newObj._gender = binaryReader.ReadByte(); newObj._hg = binaryReader.ReadByte(); newObj._rank = binaryReader.ReadUInt16(); if ((newObj._bitfield & 0x8) != 0) { newObj._level = binaryReader.ReadUInt32(); } newObj._loyalty = binaryReader.ReadUInt16(); newObj._leadership = binaryReader.ReadUInt16(); if ((newObj._bitfield & 0x4) != 0) { newObj._time_online__small = binaryReader.ReadUInt32(); newObj._allegiance_age = binaryReader.ReadUInt32(); } else { newObj._time_online__large = binaryReader.ReadUInt64(); } newObj._name = PStringChar.read(binaryReader); return(newObj); }
public static RemovePlayerPermission read(BinaryReader binaryReader) { RemovePlayerPermission newObj = new RemovePlayerPermission(); newObj.i_targetName = PStringChar.read(binaryReader); return(newObj); }
public static RemoveFromPlayerConsentList read(BinaryReader binaryReader) { RemoveFromPlayerConsentList newObj = new RemoveFromPlayerConsentList(); newObj.i_targetName = PStringChar.read(binaryReader); return(newObj); }
public static ChannelBroadcast read(BinaryReader binaryReader) { var newObj = new ChannelBroadcast(); // Check for game action (0xF7B1) opcode which indicates a sent broadast. Received messages use a game event (0xF7B0) message instead. binaryReader.BaseStream.Position = (binaryReader.BaseStream.Position - 12); newObj.Opcode = binaryReader.ReadUInt32(); if (newObj.Opcode == 0x0000F7B1) // Sent broadcasts use 0xF7B1. { newObj.SendingBroadcast = true; } binaryReader.BaseStream.Position = (binaryReader.BaseStream.Position + 8); newObj.GroupChatType = binaryReader.ReadUInt32(); newObj.SenderNameSize = binaryReader.ReadUInt16(); if (newObj.SenderNameSize == 0) // Received a message with no sender name { binaryReader.ReadBytes(2); // so we skip 2 bytes of padding. newObj.MessageText = PStringChar.read(binaryReader); } else // Need to seek back 2 bytes and process normally. { binaryReader.BaseStream.Position = (binaryReader.BaseStream.Position - 2); if (newObj.SendingBroadcast == true) { newObj.MessageText = PStringChar.read(binaryReader); } else // Received message with sender and message. { newObj.SenderName = PStringChar.read(binaryReader); newObj.MessageText = PStringChar.read(binaryReader); } } return(newObj); }
public static SoulEmote read(BinaryReader binaryReader) { SoulEmote newObj = new SoulEmote(); newObj.EmoteMessage = PStringChar.read(binaryReader); return(newObj); }
public static Emote read(BinaryReader binaryReader) { var newObj = new Emote(); newObj.emoteMessage = PStringChar.read(binaryReader); return(newObj); }
public static AddFriend read(BinaryReader binaryReader) { AddFriend newObj = new AddFriend(); newObj.i_friend_name = PStringChar.read(binaryReader); return(newObj); }
public static BootSpecificHouseGuest_Event read(BinaryReader binaryReader) { BootSpecificHouseGuest_Event newObj = new BootSpecificHouseGuest_Event(); newObj.i_guest_name = PStringChar.read(binaryReader); return(newObj); }
public static AccountBootedEvent read(BinaryReader binaryReader) { AccountBootedEvent newObj = new AccountBootedEvent(); newObj.additionalReasonText = PStringChar.read(binaryReader); return(newObj); }
public static RemovePermanentGuest_Event read(BinaryReader binaryReader) { RemovePermanentGuest_Event newObj = new RemovePermanentGuest_Event(); newObj.i_guest_name = PStringChar.read(binaryReader); return(newObj); }
public static PageData read(BinaryReader binaryReader) { PageData newObj = new PageData(); newObj.bookID = binaryReader.ReadUInt32(); newObj.page = binaryReader.ReadUInt32(); newObj.authorID = binaryReader.ReadUInt32(); newObj.authorName = PStringChar.read(binaryReader); newObj.authorAccount = PStringChar.read(binaryReader); newObj.flags = binaryReader.ReadUInt32(); if ((newObj.flags >> 16) == 0xFFFF) { if ((ushort)newObj.flags == 2) { newObj.textIncluded = binaryReader.ReadUInt32(); newObj.ignoreAuthor = binaryReader.ReadUInt32(); } else { newObj.textIncluded = newObj.flags; newObj.ignoreAuthor = 0; } } if (newObj.textIncluded != 0) { newObj.pageText = PStringChar.read(binaryReader); } return(newObj); }
public static PStringChar read(BinaryReader binaryReader) { PStringChar newObj = new PStringChar(); var startPosition = binaryReader.BaseStream.Position; uint size = binaryReader.ReadUInt16(); if (size == ushort.MaxValue) { binaryReader.BaseStream.Seek(-2, SeekOrigin.Current); size = binaryReader.ReadUInt32(); } if (size == 0) { newObj.m_buffer = null; } else { newObj.m_buffer = new string(binaryReader.ReadChars((int)size)); } Util.readToAlign(binaryReader); newObj.Length = (int)(binaryReader.BaseStream.Position - startPosition); return(newObj); }
public static TransientString read(BinaryReader binaryReader) { var newObj = new TransientString(); newObj.StringMessage = PStringChar.read(binaryReader); return(newObj); }
public static Teleport read(BinaryReader binaryReader) { Teleport newObj = new Teleport(); newObj.i_target = PStringChar.read(binaryReader); newObj.i_dest = Position.read(binaryReader); return(newObj); }
public static SetInscription read(BinaryReader binaryReader) { SetInscription newObj = new SetInscription(); newObj.i_objectid = binaryReader.ReadUInt32(); newObj.i_inscription = PStringChar.read(binaryReader); return(newObj); }
public static Friends read(BinaryReader binaryReader) { Friends newObj = new Friends(); newObj.cmd = binaryReader.ReadUInt32(); newObj.i_player = PStringChar.read(binaryReader); return(newObj); }
public static EnterWorld read(BinaryReader binaryReader) { EnterWorld newObj = new EnterWorld(); newObj.gid = binaryReader.ReadUInt32(); newObj.account = PStringChar.read(binaryReader); return(newObj); }
public static CharacterCreate read(BinaryReader binaryReader) { CharacterCreate newObj = new CharacterCreate(); newObj.account = PStringChar.read(binaryReader); newObj._charGenResult = ACCharGenResult.read(binaryReader); return(newObj); }
public static TextBoxString read(BinaryReader binaryReader) { var newObj = new TextBoxString(); newObj.MessageText = PStringChar.read(binaryReader); newObj.ChatMessageType = binaryReader.ReadUInt32(); return(newObj); }
public static WeenieErrorWithString read(BinaryReader binaryReader) { WeenieErrorWithString newObj = new WeenieErrorWithString(); newObj.etype = (WERROR)binaryReader.ReadUInt32(); newObj.user_data = PStringChar.read(binaryReader); return(newObj); }