Highroad Engine v1.3
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MoreMountains.HighroadEngine.PunLobbyManager Class Reference
Inheritance diagram for MoreMountains.HighroadEngine.PunLobbyManager:
MoreMountains.HighroadEngine.IGenericNetworkLobbyManager MoreMountains.HighroadEngine.IGenericLobbyManager

Public Types

enum  GameTypes { TinyCars = 0 , Aphex = 1 }
 List of different games type supported by photon. More...
 

Public Member Functions

virtual void Start ()
 Initializes the manager More...
 
virtual void CheckLobbyPlayersReadyState ()
 Check if players are ready to play More...
 

Public Attributes

byte PunGameVersion = 1
 Compatibility version number. More...
 
GameTypes GameType
 Reference to the current game type. More...
 
int MaxPlayers = 4
 
string LobbyScene = "TinyCarsOnlineLobby"
 Name of the lobby scene. More...
 
GameObject[] AvailableVehiclesPrefab
 the list of vehicles prefabs the player can choose from. More...
 
string[] AvailableTracksSceneName
 the list of Track Scenes names. Used to load scene & show scene name in UI More...
 
Sprite[] AvailableTracksSprite
 the list of tracks sprites. Used to show image of chosen track in UI More...
 
OnlineLobbyUI _onlineLobbyUI
 Reference to OnlineLobbyUI object in scene. More...
 

Protected Member Functions

virtual void SceneManager_sceneLoaded (Scene scene, LoadSceneMode mode)
 We use this event to destroy this object when the scene has changed and the instance must be destroyed More...
 

Protected Attributes

bool _destroyInstance = false
 

Additional Inherited Members

- Properties inherited from MoreMountains.HighroadEngine.IGenericNetworkLobbyManager
OnlineLobbyUI OnlineLobbyUIManager [get]
 Reference to OnlineLobbyManager UI gameobject. More...
 
string[] AvailableTracksSceneName [get]
 List of available tracks name. More...
 
Sprite[] AvailableTracksSprite [get]
 List of available tracks sprites (image of the track) More...
 
GameObject[] AvailableVehiclesPrefab [get]
 List of available vehicles the user can choose from. More...
 
- Properties inherited from MoreMountains.HighroadEngine.IGenericLobbyManager
int MaxPlayers [get]
 Returns the maximum number of players More...
 

Member Enumeration Documentation

◆ GameTypes

List of different games type supported by photon.

Enumerator
TinyCars 
Aphex 

Member Function Documentation

◆ CheckLobbyPlayersReadyState()

virtual void MoreMountains.HighroadEngine.PunLobbyManager.CheckLobbyPlayersReadyState ( )
virtual

Check if players are ready to play

◆ SceneManager_sceneLoaded()

virtual void MoreMountains.HighroadEngine.PunLobbyManager.SceneManager_sceneLoaded ( Scene  scene,
LoadSceneMode  mode 
)
protectedvirtual

We use this event to destroy this object when the scene has changed and the instance must be destroyed

◆ Start()

virtual void MoreMountains.HighroadEngine.PunLobbyManager.Start ( )
virtual

Initializes the manager

Member Data Documentation

◆ _destroyInstance

bool MoreMountains.HighroadEngine.PunLobbyManager._destroyInstance = false
protected

◆ _onlineLobbyUI

OnlineLobbyUI MoreMountains.HighroadEngine.PunLobbyManager._onlineLobbyUI

Reference to OnlineLobbyUI object in scene.

◆ AvailableTracksSceneName

string [] MoreMountains.HighroadEngine.PunLobbyManager.AvailableTracksSceneName

the list of Track Scenes names. Used to load scene & show scene name in UI

◆ AvailableTracksSprite

Sprite [] MoreMountains.HighroadEngine.PunLobbyManager.AvailableTracksSprite

the list of tracks sprites. Used to show image of chosen track in UI

◆ AvailableVehiclesPrefab

GameObject [] MoreMountains.HighroadEngine.PunLobbyManager.AvailableVehiclesPrefab

the list of vehicles prefabs the player can choose from.

◆ GameType

GameTypes MoreMountains.HighroadEngine.PunLobbyManager.GameType

Reference to the current game type.

◆ LobbyScene

string MoreMountains.HighroadEngine.PunLobbyManager.LobbyScene = "TinyCarsOnlineLobby"

Name of the lobby scene.

◆ MaxPlayers

int MoreMountains.HighroadEngine.PunLobbyManager.MaxPlayers = 4

◆ PunGameVersion

byte MoreMountains.HighroadEngine.PunLobbyManager.PunGameVersion = 1

Compatibility version number.


The documentation for this class was generated from the following file: