protected override void DeserializeRequestBody(ITypeReader typeReader) { RoomId = typeReader.ReadGuid(); CurrentPlayerCount = typeReader.ReadInt(); State = (RoomState)typeReader.ReadByte(); MaxMatchMakingWeight = typeReader.ReadInt(); }
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(); }
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(); }
protected override void DeserializeRequestBody(ITypeReader typeReader) { RoomId = typeReader.ReadGuid(); }
public static Guid?ReadNullableGuid(this ITypeReader reader) { return(reader.ReadByte() != 0 ? reader.ReadGuid() : (Guid?)null); }
public void Deserialize(ITypeReader typeReader) { SessionId = typeReader.ReadGuid(); EndPoint = typeReader.ReadString(); DeserializeRequestBody(typeReader); }
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); }