Initial commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BracerLib.StateManagement
|
||||
{
|
||||
/// <summary>
|
||||
/// Base StateMap component that can be extended and used for start up or other state loads.
|
||||
/// </summary>
|
||||
[DefaultExecutionOrder(-1000)]
|
||||
public class StateMap : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
/// Method to send back the number of states to be utilized.
|
||||
/// </summary>
|
||||
public virtual GameState[] GetGameStateMap() => Array.Empty<GameState>();
|
||||
|
||||
/// <summary>
|
||||
/// The running requirement set for all <see cref="GameState"/> state entries.
|
||||
/// </summary>
|
||||
public virtual Tuple<GameState, GameState>[] GetGameStateRequirements() => Array.Empty<Tuple<GameState, GameState>>();
|
||||
|
||||
/// <summary>
|
||||
/// What is considered the last game ready state to run before starting the game.
|
||||
/// </summary>
|
||||
public virtual GameState GetReadyState() => null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user