You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
647 B
C#
31 lines
647 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace Unity.BossRoom.Gameplay.GameState
|
|
{
|
|
public enum WinState
|
|
{
|
|
Invalid,
|
|
Win,
|
|
Loss
|
|
}
|
|
|
|
/// <summary>
|
|
/// Class containing some data that needs to be passed between ServerBossRoomState and PostGameState to represent the game session's win state.
|
|
/// </summary>
|
|
public class PersistentGameState
|
|
{
|
|
public WinState WinState { get; private set; }
|
|
|
|
public void SetWinState(WinState winState)
|
|
{
|
|
WinState = winState;
|
|
}
|
|
|
|
public void Reset()
|
|
{
|
|
WinState = WinState.Invalid;
|
|
}
|
|
}
|
|
}
|