public new void Deserialize(IDataReader reader) { base.Deserialize(reader); WorldX = reader.ReadShort(); WorldY = reader.ReadShort(); MapId = reader.ReadDouble(); SubAreaId = (UInt16)reader.ReadVarShort(); Companions = new PartyCompanionBaseInformations[reader.ReadShort()]; for (var i = 0; i < Companions.Length; i++) { (Companions[i] = new PartyCompanionBaseInformations()).Deserialize(reader); } }
public void Deserialize(IDataReader reader) { GuestId = reader.ReadVarLong(); HostId = reader.ReadVarLong(); Name = reader.ReadUTF(); GuestLook = new EntityLook(); GuestLook.Deserialize(reader); Breed = (SByte)reader.ReadByte(); Sex = reader.ReadBoolean(); Status = new PlayerStatus(); Status.Deserialize(reader); Companions = new PartyCompanionBaseInformations[reader.ReadShort()]; for (var i = 0; i < Companions.Length; i++) { (Companions[i] = new PartyCompanionBaseInformations()).Deserialize(reader); } }