API ReferenceSandbox.Modals
CreateGameOptionsclass
Passed to IModalSystem.CreateGame
object→CreateGameOptions
Constructors1
Showing 1 constructors
public CreateGameOptions(Sandbox.Package package, System.Action`1<Sandbox.Modals.CreateGameResults> onComplete = null)
| Parameter | Type | Description |
|---|---|---|
| package | Package | — |
| onComplete = null | Action<CreateGameResults> | — |
No results match this filter.
Properties5
Showing 5 properties
public bool Sandbox.Modals.CreateGameOptions.ConfigureOnly { get; set; }
Show this as a settings form with a Save Settings button. The completion callback decides what happens next.
Returns:
bool—public System.Nullable`1<Sandbox.Modals.CreateGameResults> Sandbox.Modals.CreateGameOptions.InitialSettings { get; set; }
The setup to edit instead of loading the player's last saved setup for this game.
public int Sandbox.Modals.CreateGameOptions.MinimumPlayers { get; set; }
Minimum server capacity required by the caller, such as the number of players in a party.
Returns:
int—public System.Action`1<Sandbox.Modals.CreateGameResults> Sandbox.Modals.CreateGameOptions.OnComplete { get; set; }
public Sandbox.Package Sandbox.Modals.CreateGameOptions.Package { get; set; }
No results match this filter.