部屋作成時の各プロパティはRoomOptionで指定します。
RoomOptionの各メソッドはRoomOption自身を返すので、メソッドチェインとして記述できます。
各プロパティについてはRoomクラスを参照してください。
RoomOption(
uint maxPlayers,
uint searchGroup,
IDictionary<string, object> publicProps,
IDictionary<string, object> privateProps);maxPlayers: 最大プレイヤー数searchGroup: 検索グループpublicProps: 公開プロパティprivateProps: 非公開プロパティ
- Visible:
true - Joinable:
true - Watchable:
true - WithNumber:
false - ClientDeadline: サーバ設定による
- LogLevel: サーバ設定による
RoomOption Visible(bool val);
RoomOption Joinable(bool val);
RoomOption Watchable(bool val);グループ検索可能、入室可能、観戦可能の各フラグを設定します。
RoomOption WithNumber(bool val);部屋番号を割り当てかを設定します。
RoomOption WithClientDeadline(uint sec);ClientDeadlineを設定します。
sec: 設定値(秒)
RoomOption SetLogLevel(LogLevel l);部屋のログレベルを設定します。
l: ログレベルRoomOption.LogLevel.DEFAULTRoomOption.LogLevel.NOLOGRoomOption.LogLevel.ERRORRoomOption.LogLevel.INFORoomOption.LogLevel.DEBUGRoomOption.LogLevel.ALL