예제 #1
0
 protected override void SerializeRequestBody(ITypeWriter typeWriter)
 {
     typeWriter.WriteDictionary(Properties, typeWriter.Write);
     typeWriter.Write(Players.Count);
     foreach (var property in Players)
     {
         typeWriter.Write(property.Key);
         typeWriter.WriteDictionary(property.Value, typeWriter.Write);
     }
     typeWriter.Write(RoomId);
 }
예제 #2
0
 protected override void SerializeBody(ITypeWriter typeWriter)
 {
     typeWriter.Write(RoomId);
     typeWriter.Write(MaxPlayers);
     typeWriter.Write(CurrentPlayers);
     typeWriter.WriteDictionary(RoomProperties, typeWriter.Write);
     typeWriter.Write((byte)State);
 }
 protected override void SerializeRequestBody(ITypeWriter typeWriter)
 {
     typeWriter.WriteDictionary(MatchMakingProperties, typeWriter.Write);
     typeWriter.Write(MatchMakingWeight);
 }
예제 #4
0
 protected override void SerializeRequestBody(ITypeWriter typeWriter)
 {
     typeWriter.Write(RoomId);
     typeWriter.WriteDictionary(Properties, typeWriter.Write);
 }