s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejams
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
CreateGameOptions
chevron_left Classes
struct
CreateGameOptions

Constructors

functionsCreateGameOptions

Properties

data_objectConfigureOnlydata_objectInitialSettingsdata_objectMinimumPlayersdata_objectOnCompletedata_objectPackage
CreateGameOptions
Passed to IModalSystem.CreateGame
struct Sandbox.Modals .
sealedSandbox.Engine

build Constructors 1

CreateGameOptions (package, onComplete)

data_object Properties 5

ConfigureOnly
bool
Show this as a settings form with a Save Settings button. The completion callback decides what happens next.
InitialSettings
Nullable`1
The setup to edit instead of loading the player's last saved setup for this game.
MinimumPlayers
int
Minimum server capacity required by the caller, such as the number of players in a party.
OnComplete
Action`1
Package
Package
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter