- ヘルプセンター
- Diarkis C# SDK
- Room
Room の作成方法
Room モジュールでは、メンバー数が固定された Room をオプション設定とともに作成できます。
このメソッドを実行すると、OnCreate が発生します。
UDP クライアントを使用している場合、メッセージは RUDP として送信されます。
// Maximum number of members for this room
int maxMembers = 10;
// If true, the room will not be discard when it is empty
bool allowEmpty = false;
// If true, the creator will automatically join the room created
bool join = true;
// TTL of the room in seconds when it is empty (this is only effective when allowEmpty=true)
int ttl = 60;
// Broadcast message buffering interval in milliseconds to lessen server stress
int interval = 200;
room.Create(maxMembers, allowEmpty, join, ttl, interval);