This commit is contained in:
Samir Badi 2025-11-27 13:06:26 -05:00
parent 75119a5510
commit 5bbd6b550c
6 changed files with 57 additions and 1 deletions

View File

@ -0,0 +1,21 @@
namespace MedievalParty.Core.Game
{
public class GameManager_RollInitiativeState: IState
{
public void OnEnter()
{
throw new System.NotImplementedException();
}
public void OnExit()
{
throw new System.NotImplementedException();
}
public void OnUpdate()
{
throw new System.NotImplementedException();
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 43bf2b39ebe04f61837d8f3d594d3bbe
timeCreated: 1764264245

View File

@ -13,6 +13,8 @@ namespace MedievalParty.Core
{
public static GameManager Instance { get; private set; }
public event EventHandler onRollInitiative;
[Header("Spawn")]
[SerializeField] private PlayerObject playerPrefab;
[SerializeField] private AIObject aiPrefab;

View File

@ -1,12 +1,17 @@
using UnityEngine;
using System;
using UnityEngine;
namespace MedievalParty.Entity
{
public abstract class EntityObject: MonoBehaviour
{
public static event EventHandler<int> onAnyEntityNumberRoll;
public void SetCharacter(EntitySO entity)
{
Instantiate(entity.visual, transform);
}
protected void NumberRolled(int number) => onAnyEntityNumberRoll?.Invoke(this, number);
}
}

View File

@ -0,0 +1,22 @@
using MedievalParty.Core;
namespace MedievalParty.Entity.Player
{
public class PlayerObject_RollDiceState: IState
{
public void OnEnter()
{
throw new System.NotImplementedException();
}
public void OnExit()
{
throw new System.NotImplementedException();
}
public void OnUpdate()
{
throw new System.NotImplementedException();
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 3b9214e204e847178ba9333955b0f265
timeCreated: 1764264682