public MessengerFriendAdd(IncomingPacket packet) { PlayerID = packet.ReadUInt(); TargetPlayerID = packet.ReadUInt(); PlayerSex = packet.ReadByte(); TargetPlayerSex = packet.ReadByte(); PlayerJob = packet.ReadInt(); TargetPlayerJob = packet.ReadInt(); }
public static PacketField <byte> ReadByteField(this IncomingPacket packet, string name) { Contract.Requires(packet != null); Contract.Requires(name != null); return(new PacketField <byte>(PacketFieldType.Byte, packet.ReadByte(), name)); }
public MessengerFriendAddRequest(IncomingPacket packet) { InvitingPlayerID = packet.ReadUInt(); TargetPlayerID = packet.ReadUInt(); InvitingPlayerJob = packet.ReadInt(); InvitingPlayerSex = (Gender)packet.ReadByte(); InvitingPlayerName = packet.ReadString(); TargetPlayerName = packet.ReadString(); }
public CreateCharacter(IncomingPacket packet) { Username = packet.ReadString(); Password = packet.ReadString(); Slot = packet.ReadByte(); CharacterName = packet.ReadString(); Face = packet.ReadByte(); Costume = packet.ReadByte(); Skinset = packet.ReadByte(); HairStyle = packet.ReadByte(); HairColor = packet.ReadUInt(); Gender = packet.ReadByte(); Class = packet.ReadByte(); HeadMesh = packet.ReadByte(); BankPw = packet.ReadInt(); AuthKey = packet.ReadInt(); }
//TODO: Friend f; public JoinWorld(IncomingPacket packet) { WorldID = packet.ReadUInt(); PlayerID = packet.ReadUInt(); AuthKey = packet.ReadUInt(); PartyID = packet.ReadUInt(); GuildID = packet.ReadUInt(); GuildWarID = packet.ReadUInt(); IdOfMulti = packet.ReadUInt(); CharacterSlot = packet.ReadByte(); CharacterName = packet.ReadString(); AccountName = packet.ReadString(); Password = packet.ReadString(); MessengerState = packet.ReadUInt(); FriendsSize = packet.ReadInt(); FriendID = packet.ReadUInt(); /* TODO for (int i = 0; i < FriendsSize; i++) * { * //TODO: packet.Read( &f, sizeof(Friend) ); * //SetFriend( FriendID, &f) * }*/ }
public byte AddMode; // If 1: Add Mode If 0 Replace public ModeModify(IncomingPacket packet) { mode = (Mode)packet.ReadUInt(); AddMode = packet.ReadByte(); }
public GuildMemberSetClass(IncomingPacket packet) { Flag = (ChangeGuildRankFlag)packet.ReadByte(); MasterID = packet.ReadUInt(); PlayerID = packet.ReadUInt(); }