Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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;
 }