Iuvo Unity 0.5.1
This is library containing a variety of helper classes and extension methods for the Unity gane engine.
GitHub | Iuvo Unity Updates | Creator
Loading...
Searching...
No Matches
IuvoUnity.Constants.IuvoGame Class Reference
Inheritance diagram for IuvoUnity.Constants.IuvoGame:
IuvoUnity.Constants.IGameDebug

Public Member Functions

void Awake ()
void InitializeGame ()
void LoadGameAsync ()
void LoadGameSafe ()
void PlaySplashScreen ()
void ShowSplashScreen ()
void ShowMainMenu ()
void StartGame ()
void RunGame ()
void SaveGame ()
void QuitGame ()
void ShutdownGame ()
void EnableInput ()
void DisableInput ()
void EnterMenu ()
void LoadMainMenu ()
void UpdateMenu ()
void ExitMenu ()
void PauseGame ()
void UnpauseGame ()
void ShowDeathMenu ()
void ShowCreditsScreen ()
void WinGame ()
void LoadLevelSafe ()
void LoadLevelAsync ()
void ReloadLevel ()
void RestartLevelAtCheckpoint ()
void RespawnPlayerAtCheckpoint ()
void RespawnPlayer ()
void SetScreenResolution (int width, int height)
void SetScreenMode (FullScreenMode mode)
void LogGameInfo ()
void LogGameState ()
void LogGameError (string message)
void LogGameWarning (string message)

Public Attributes

int screenWidth = 1920
int screenHeight = 1080
string gameVersion = "0.0.1"
string gameName = "IuvoGame"
string developerName = "Iuvo"
string publisherName = "Iuvo"
ConditionalStateMachine systemsStateMachine
ConditionalState gameStateMachine
ConditionalState menuStateMachine

Private Attributes

ConstTag IuvoTag = new ConstTag(TagType.APPLICATION, ApplicationTag.BASE_APP, GameTag.NONE, UITag.NONE)

Member Function Documentation

◆ Awake()

void IuvoUnity.Constants.IuvoGame.Awake ( )
41 {
42 // default constructor
43 DontDestroyOnLoad(this.gameObject);
44 if (systemsStateMachine != null)
45 {
46 if (systemsStateMachine.defaultState != null)
47 {
48 systemsStateMachine.currentState = systemsStateMachine.defaultState;
49 systemsStateMachine.previousState = null;
50 }
51 }
52 }

References systemsStateMachine.

◆ DisableInput()

void IuvoUnity.Constants.IuvoGame.DisableInput ( )
111 {
112 }

◆ EnableInput()

void IuvoUnity.Constants.IuvoGame.EnableInput ( )
108 {
109 }

◆ EnterMenu()

void IuvoUnity.Constants.IuvoGame.EnterMenu ( )
119 {
120 }

◆ ExitMenu()

void IuvoUnity.Constants.IuvoGame.ExitMenu ( )
131 {
132 }

◆ InitializeGame()

void IuvoUnity.Constants.IuvoGame.InitializeGame ( )
58 {
59 // set up game systems
60 }

◆ LoadGameAsync()

void IuvoUnity.Constants.IuvoGame.LoadGameAsync ( )
63 {
64 // load game resources
65 }

◆ LoadGameSafe()

void IuvoUnity.Constants.IuvoGame.LoadGameSafe ( )
68 {
69 // load game resources safely
70 }

◆ LoadLevelAsync()

void IuvoUnity.Constants.IuvoGame.LoadLevelAsync ( )
164 {
165 }

◆ LoadLevelSafe()

void IuvoUnity.Constants.IuvoGame.LoadLevelSafe ( )
160 {
161 }

◆ LoadMainMenu()

void IuvoUnity.Constants.IuvoGame.LoadMainMenu ( )
123 {
124 }

◆ LogGameError()

void IuvoUnity.Constants.IuvoGame.LogGameError ( string message)

Implements IuvoUnity.Constants.IGameDebug.

226 {
227 throw new System.NotImplementedException();
228 }

◆ LogGameInfo()

void IuvoUnity.Constants.IuvoGame.LogGameInfo ( )

Implements IuvoUnity.Constants.IGameDebug.

205 {
206 IuvoDebug.DebugLog($"Game: {gameName}");
207 IuvoDebug.DebugLog($"Game Version: {gameVersion}");
208 IuvoDebug.DebugLog($"Developer: {developerName}");
209 IuvoDebug.DebugLog($"Publisher: {publisherName}");
210 IuvoDebug.DebugLog($"Screen Resolution: {screenWidth}x{screenHeight}");
211 }

References IuvoUnity.Debug.IuvoDebug.DebugLog().

◆ LogGameState()

void IuvoUnity.Constants.IuvoGame.LogGameState ( )

Implements IuvoUnity.Constants.IGameDebug.

214 {
215 if(systemsStateMachine != null && systemsStateMachine.currentState != null)
216 {
217 IuvoDebug.DebugLog($"Systems State: {systemsStateMachine.currentState.stateName}");
218 }
219 else
220 {
221 IuvoDebug.DebugLog("Systems State: None");
222 }
223 }

References IuvoUnity.Debug.IuvoDebug.DebugLog(), and systemsStateMachine.

◆ LogGameWarning()

void IuvoUnity.Constants.IuvoGame.LogGameWarning ( string message)

Implements IuvoUnity.Constants.IGameDebug.

231 {
232 throw new System.NotImplementedException();
233 }

◆ PauseGame()

void IuvoUnity.Constants.IuvoGame.PauseGame ( )
135 {
136 }

◆ PlaySplashScreen()

void IuvoUnity.Constants.IuvoGame.PlaySplashScreen ( )
72 {
73
74 }

◆ QuitGame()

void IuvoUnity.Constants.IuvoGame.QuitGame ( )
96 {
97 }

◆ ReloadLevel()

void IuvoUnity.Constants.IuvoGame.ReloadLevel ( )
168 {
169 }

◆ RespawnPlayer()

void IuvoUnity.Constants.IuvoGame.RespawnPlayer ( )
179 {
180 }

◆ RespawnPlayerAtCheckpoint()

void IuvoUnity.Constants.IuvoGame.RespawnPlayerAtCheckpoint ( )
175 {
176 }

◆ RestartLevelAtCheckpoint()

void IuvoUnity.Constants.IuvoGame.RestartLevelAtCheckpoint ( )
171 {
172 }

◆ RunGame()

void IuvoUnity.Constants.IuvoGame.RunGame ( )
89 {
90 }

◆ SaveGame()

void IuvoUnity.Constants.IuvoGame.SaveGame ( )
92 {
93 }

◆ SetScreenMode()

void IuvoUnity.Constants.IuvoGame.SetScreenMode ( FullScreenMode mode)
196 {
197 Screen.fullScreenMode = mode;
198 }

◆ SetScreenResolution()

void IuvoUnity.Constants.IuvoGame.SetScreenResolution ( int width,
int height )
189 {
190 screenWidth = width;
191 screenHeight = height;
192 Screen.SetResolution(screenWidth, screenHeight, Screen.fullScreenMode);
193 }

References screenHeight, and screenWidth.

◆ ShowCreditsScreen()

void IuvoUnity.Constants.IuvoGame.ShowCreditsScreen ( )
147 {
148 }

◆ ShowDeathMenu()

void IuvoUnity.Constants.IuvoGame.ShowDeathMenu ( )
144 {
145 }

◆ ShowMainMenu()

void IuvoUnity.Constants.IuvoGame.ShowMainMenu ( )
81 {
82 }

◆ ShowSplashScreen()

void IuvoUnity.Constants.IuvoGame.ShowSplashScreen ( )
77 {
78 }

◆ ShutdownGame()

void IuvoUnity.Constants.IuvoGame.ShutdownGame ( )
100 {
101 }

◆ StartGame()

void IuvoUnity.Constants.IuvoGame.StartGame ( )
85 {
86 }

◆ UnpauseGame()

void IuvoUnity.Constants.IuvoGame.UnpauseGame ( )
139 {
140 }

◆ UpdateMenu()

void IuvoUnity.Constants.IuvoGame.UpdateMenu ( )
127 {
128 }

◆ WinGame()

void IuvoUnity.Constants.IuvoGame.WinGame ( )
151 {
152 }

Member Data Documentation

◆ developerName

string IuvoUnity.Constants.IuvoGame.developerName = "Iuvo"

◆ gameName

string IuvoUnity.Constants.IuvoGame.gameName = "IuvoGame"

◆ gameStateMachine

ConditionalState IuvoUnity.Constants.IuvoGame.gameStateMachine

◆ gameVersion

string IuvoUnity.Constants.IuvoGame.gameVersion = "0.0.1"

◆ IuvoTag

ConstTag IuvoUnity.Constants.IuvoGame.IuvoTag = new ConstTag(TagType.APPLICATION, ApplicationTag.BASE_APP, GameTag.NONE, UITag.NONE)
private

◆ menuStateMachine

ConditionalState IuvoUnity.Constants.IuvoGame.menuStateMachine

◆ publisherName

string IuvoUnity.Constants.IuvoGame.publisherName = "Iuvo"

◆ screenHeight

int IuvoUnity.Constants.IuvoGame.screenHeight = 1080

Referenced by SetScreenResolution().

◆ screenWidth

int IuvoUnity.Constants.IuvoGame.screenWidth = 1920

Referenced by SetScreenResolution().

◆ systemsStateMachine

ConditionalStateMachine IuvoUnity.Constants.IuvoGame.systemsStateMachine

The documentation for this class was generated from the following file:
  • D:/Unity/IuvoUnityCore/Assets/IuvoUnity/Runtime/Constants/IuvoGame.cs