Initial Combat Implementation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user