Initial Combat Implementation

This commit is contained in:
Luis Gonzalez
2026-05-31 21:35:12 -07:00
parent 7fa77ce821
commit 1f647dd5e1
166 changed files with 93337 additions and 91 deletions
@@ -0,0 +1,21 @@
using ProjectM.Simulation;
using UnityEngine;
namespace ProjectM.Authoring
{
/// <summary>
/// Designer-facing definition of a character's base stats (movement + survivability), baked into the
/// AbilityDatabase blob and looked up at runtime by CharacterStatsRef. The single source of these
/// values - PlayerAuthoring also seeds the player's starting Health from MaxHealth.
/// </summary>
[CreateAssetMenu(menuName = "Project M/Character Stats Definition", fileName = "Character_")]
public class CharacterStatsDefinition : ScriptableObject
{
public CharacterId Id = CharacterId.Default;
public string DisplayName = "Character";
[Min(0f)] public float MoveSpeed = 6f;
[Min(0f)] public float TurnRateDegreesPerSec = 720f;
[Min(0f)] public float MaxHealth = 100f;
}
}