public PlayerInfo Read(BinaryReader br) { Pid = br.ReadUInt64(); Uid = br.ReadUInt32(); if (br.ReadByte() == (byte)SerializeObjectMark.Common) { Name = br.ReadString(); } Level = br.ReadUInt32(); if (br.ReadByte() == (byte)SerializeObjectMark.Common) { Skill = (new PlayerInfoSkill()).Read(br); } if (br.ReadByte() == (byte)SerializeObjectMark.Common) { Item = (new PlayerInfoItem()).Read(br); } return(this); }
public PlayerInfo Read(BinaryReader br) { Pid = br.ReadUInt64(); Uid = br.ReadUInt32(); if (br.ReadByte() == (byte)SerializeObjectMark.Common) { Name = br.ReadString(); } Level = br.ReadUInt32(); if (br.ReadByte() == (byte)SerializeObjectMark.Common) { Skill = (new PlayerInfoSkill()).Read(br); } if (br.ReadByte() == (byte)SerializeObjectMark.Common) { Item = (new PlayerInfoItem()).Read(br); } return this; }