Skip to content

Class: PlayLobbyManager ​

csharp
public class PlayLobbyManager : ManagerBase<PlayLobbyManager>, ILogicUpdate

Fields ​

NameDeclarationDescription
fxRiftActivatepublic GameObject fxRiftActivate
fxRiftChargepublic GameObject fxRiftCharge
fxRiftLooppublic GameObject fxRiftLoop
fxRiftOpenpublic GameObject fxRiftOpen

Properties ​

NameDeclarationDescription
isEveryoneReadypublic bool isEveryoneReady { get; }
numOfReadyPlayerspublic int numOfReadyPlayers { get; }
numOfReadyPlayersMaxpublic int numOfReadyPlayersMax { get; }

Methods ​

AddStartGameCondition(Func&lt;string&gt;) ​

Given function must return a reason for start button unavailability. Return null for approval.

csharp
public void AddStartGameCondition(Func<string> func)

Parameters:

NameTypeDescription
funcSystem.Func&lt;TResult&gt;&lt;string&gt;

CheckStartGameCondition(out string, bool) ​

csharp
public bool CheckStartGameCondition(out string reason, bool showMessage)

Parameters:

NameTypeDescription
reasonstring
showMessagebool

Returns: bool

GoBack() ​

csharp
public void GoBack()

JoinMidGame() ​

csharp
public void JoinMidGame()

LogicUpdate(float) ​

csharp
public override void LogicUpdate(float dt)

Parameters:

NameTypeDescription
dtfloat

RemoveStartGameCondition(Func&lt;string&gt;) ​

csharp
public void RemoveStartGameCondition(Func<string> func)

Parameters:

NameTypeDescription
funcSystem.Func&lt;TResult&gt;&lt;string&gt;

SetReady(bool) ​

csharp
public void SetReady(bool ready)

Parameters:

NameTypeDescription
readybool

StartGame() ​

csharp
public void StartGame()

ToggleReady() ​

csharp
public void ToggleReady()

Maintained by the Shape of Dreams Modding Community