First commit
This commit is contained in:
31
Assets/Code/GameState/PlayModes/RestPlayMode.cs
Normal file
31
Assets/Code/GameState/PlayModes/RestPlayMode.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Nox.Core;
|
||||
using Nox.Platform;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Nox.Game {
|
||||
public class RestPlayMode : IPlayMode {
|
||||
private readonly PlatformSettings platformSettings;
|
||||
private readonly PartyDefinition partyDefinition;
|
||||
|
||||
public RestPlayMode(PlatformSettings platformSettings, PartyDefinition partyDefinition) {
|
||||
this.platformSettings = platformSettings;
|
||||
this.partyDefinition = partyDefinition;
|
||||
}
|
||||
|
||||
public bool IsGameModeInitialized { get; private set; }
|
||||
|
||||
public void EnterPlayMode() {
|
||||
if(partyDefinition == null) {
|
||||
Debug.LogWarning("RestPlayMode started without PartyData.");
|
||||
}
|
||||
|
||||
Debug.Log("Entering Rest Play Mode");
|
||||
IsGameModeInitialized = true;
|
||||
}
|
||||
|
||||
public void Tick() { }
|
||||
public void LateTick() { }
|
||||
public void ExitGameMode() { }
|
||||
public void Dispose() { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user