Table of Contents

Class MainMenuHandler

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class MainMenuHandler : MonoBehaviourPunCallbacks, IConnectionCallbacks, IMatchmakingCallbacks, IInRoomCallbacks, ILobbyCallbacks, IWebRpcCallback, IErrorInfoCallback
Inheritance
MonoBehaviourPun
MonoBehaviourPunCallbacks
MainMenuHandler
Implements
IConnectionCallbacks
IMatchmakingCallbacks
IInRoomCallbacks
ILobbyCallbacks
IWebRpcCallback
IErrorInfoCallback
Inherited Members
MonoBehaviourPunCallbacks.OnEnable()
MonoBehaviourPunCallbacks.OnDisable()
MonoBehaviourPunCallbacks.OnConnected()
MonoBehaviourPunCallbacks.OnLeftRoom()
MonoBehaviourPunCallbacks.OnMasterClientSwitched(Player)
MonoBehaviourPunCallbacks.OnJoinedLobby()
MonoBehaviourPunCallbacks.OnLeftLobby()
MonoBehaviourPunCallbacks.OnDisconnected(DisconnectCause)
MonoBehaviourPunCallbacks.OnRegionListReceived(RegionHandler)
MonoBehaviourPunCallbacks.OnJoinedRoom()
MonoBehaviourPunCallbacks.OnPlayerEnteredRoom(Player)
MonoBehaviourPunCallbacks.OnPlayerLeftRoom(Player)
MonoBehaviourPunCallbacks.OnRoomPropertiesUpdate(Hashtable)
MonoBehaviourPunCallbacks.OnPlayerPropertiesUpdate(Player, Hashtable)
MonoBehaviourPunCallbacks.OnWebRpcResponse(OperationResponse)
MonoBehaviourPunCallbacks.OnErrorInfo(ErrorInfo)
MonoBehaviourPun.photonView
Extension Methods

Constructors

MainMenuHandler()

public MainMenuHandler()

Fields

GAME_SCENE

public const string GAME_SCENE = "SurfaceScene"

Field Value

string

MAX_PLAYERS

public const int MAX_PLAYERS = 4

Field Value

int

UIHandler

public MainMenuUIHandler UIHandler

Field Value

MainMenuUIHandler

_instance

public static MainMenuHandler _instance

Field Value

MainMenuHandler

hAuthTicket

public HAuthTicket hAuthTicket

Field Value

HAuthTicket

m_CheckedSteamCMD

public static bool m_CheckedSteamCMD

Field Value

bool

m_Hosting

public bool m_Hosting

Field Value

bool

Properties

Instance

public static MainMenuHandler Instance { get; }

Property Value

MainMenuHandler

SteamLobbyHandler

public static SteamLobbyHandler SteamLobbyHandler { get; set; }

Property Value

SteamLobbyHandler

Methods

Awake()

public void Awake()

CancelAuthTicket(HAuthTicket)

public static void CancelAuthTicket(HAuthTicket ticket)

Parameters

ticket HAuthTicket

CheckConnected()

public IEnumerator CheckConnected()

Returns

IEnumerator

CheckSteamCMD()

public void CheckSteamCMD()

ConnectToPhoton(BuildVersion)

public void ConnectToPhoton(BuildVersion version)

Parameters

version BuildVersion

DeleteTempFolder()

public void DeleteTempFolder()

GetPrettyStateName()

public string GetPrettyStateName()

Returns

string

GetSteamAuthTicket(out HAuthTicket)

public static string GetSteamAuthTicket(out HAuthTicket ticket)

Parameters

ticket HAuthTicket

Returns

string

Host(int)

public void Host(int saveIndex)

Parameters

saveIndex int

JoinRandom()

public void JoinRandom()

LoadGameScene()

public void LoadGameScene()

OnConnectedToMaster()

public override void OnConnectedToMaster()

OnCreateRoomFailed(short, string)

public override void OnCreateRoomFailed(short returnCode, string message)

Parameters

returnCode short
message string

OnCreatedRoom()

public override void OnCreatedRoom()

OnCustomAuthenticationFailed(string)

public override void OnCustomAuthenticationFailed(string errorMessage)

Parameters

errorMessage string

OnDestroy()

public void OnDestroy()

OnJoinedSteamLobby(string, string, bool)

public void OnJoinedSteamLobby(string region, string room, bool forceRegion)

Parameters

region string
room string
forceRegion bool

OnSteamHosted(ulong)

public void OnSteamHosted(ulong obj)

Parameters

obj ulong

ResetGame()

public static void ResetGame()

SetPhotonName()

public void SetPhotonName()

SilentHost()

public void SilentHost()

Start()

public void Start()