Show / Hide Table of Contents

Class LevelSetup

Represents the level seutp, as set up in the Level Settings UI.

Inheritance
Object
LevelSetup
Namespace: Modding.Levels
Assembly: Assembly-CSharp.dll
Syntax
public class LevelSetup

Properties

AllowCopyMachines

Whether copying machines of other players is allowed.

Declaration
public bool AllowCopyMachines { get; set; }
Property Value
Type Description
Boolean

AllowExcessPlayers

Whether additional player can join that have no build zones already placed.

Declaration
public bool AllowExcessPlayers { get; set; }
Property Value
Type Description
Boolean

BlockCountLimit

The maximum amount of blocks allowed on a machine.

Declaration
public int BlockCountLimit { get; set; }
Property Value
Type Description
Int32

CurtainMode

Whether curtain mode is turned on.

Declaration
public bool CurtainMode { get; set; }
Property Value
Type Description
Boolean

Environment

Which environment is used in the level.

Declaration
public LevelSettings.LevelEnvironment Environment { get; set; }
Property Value
Type Description
LevelSettings.LevelEnvironment

HidePlayerLabels

Whether player labels should be hidden or shown.

Declaration
public bool HidePlayerLabels { get; set; }
Property Value
Type Description
Boolean

InternalObject

The internal representation of this object.

WARNING: This is not part of the stable API and subject to change!

Declaration
public LevelSettings InternalObject { get; }
Property Value
Type Description
LevelSettings

MaxPlayers

Maxmium amount of players that can play the level together.

Declaration
public int MaxPlayers { get; set; }
Property Value
Type Description
Int32

MinPlayers

Minimum amount of players necessary to play the level.

Declaration
public int MinPlayers { get; set; }
Property Value
Type Description
Int32

MusicID

The ID of the soundtrack playing in the level.

Declaration
public int MusicID { get; set; }
Property Value
Type Description
Int32

Name

Name of the level.

Declaration
public string Name { get; }
Property Value
Type Description
String

VoteMode

Whether vote mod is turned on.

Declaration
public bool VoteMode { get; set; }
Property Value
Type Description
Boolean

Methods

From(LevelSettings)

Declaration
public static LevelSetup From(LevelSettings settings)
Parameters
Type Name Description
LevelSettings settings
Returns
Type Description
LevelSetup

GetCurrent()

Declaration
public static LevelSetup GetCurrent()
Returns
Type Description
LevelSetup

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()
Back to top Generated by DocFX