protected override void DeserializeRequestBody(ITypeReader typeReader)
 {
     RoomId             = typeReader.ReadGuid();
     CurrentPlayerCount = typeReader.ReadInt();
     State = (RoomState)typeReader.ReadByte();
     MaxMatchMakingWeight = typeReader.ReadInt();
 }
Esempio n. 2
0
 protected override void DeserializeBody(ITypeReader typeReader)
 {
     RoomId         = typeReader.ReadGuid();
     MaxPlayers     = typeReader.ReadInt();
     CurrentPlayers = typeReader.ReadInt();
     RoomProperties = typeReader.ReadDictionary <byte>(typeReader.ReadByte);
     State          = (RoomState)typeReader.ReadByte();
 }
Esempio n. 3
0
 protected override void DeserializeBody(ITypeReader typeReader)
 {
     ServerIpAddress = typeReader.ReadString();
     ServerPort      = typeReader.ReadUShort();
     RoomId          = typeReader.ReadGuid();
     Status          = (JoinStatus)typeReader.ReadByte();
     CurrentPlayers  = typeReader.ReadInt();
     MaxPlayers      = typeReader.ReadInt();
     JoinToExisting  = typeReader.ReadBool();
 }
Esempio n. 4
0
 protected override void DeserializeRequestBody(ITypeReader typeReader)
 {
     RoomId = typeReader.ReadGuid();
 }
Esempio n. 5
0
 public static Guid?ReadNullableGuid(this ITypeReader reader)
 {
     return(reader.ReadByte() != 0 ? reader.ReadGuid() : (Guid?)null);
 }
Esempio n. 6
0
 public void Deserialize(ITypeReader typeReader)
 {
     SessionId = typeReader.ReadGuid();
     EndPoint  = typeReader.ReadString();
     DeserializeRequestBody(typeReader);
 }
Esempio n. 7
0
 protected override void DeserializeRequestBody(ITypeReader typeReader)
 {
     RoomId     = typeReader.ReadGuid();
     Properties = typeReader.ReadDictionary(typeReader.ReadByte);
 }
 protected override void DeserializeRequestBody(ITypeReader typeReader)
 {
     RoomId = typeReader.ReadGuid();
     MatchMakingProperties = typeReader.ReadDictionary <byte>(typeReader.ReadByte);
     MatchMakingWeight     = typeReader.ReadInt();
 }
 protected override void DeserializeBody(ITypeReader typeReader)
 {
     this.SessionId = typeReader.ReadGuid();
     DeserializeRequestBody(typeReader);
 }