Files
GameJamDungeon/Zennysoft.Game.Ma/src/player/PlayerStatResource.cs

44 lines
1.4 KiB
C#

using Godot;
namespace Zennysoft.Game.Ma;
[GlobalClass]
public partial class PlayerStatResource : Resource
{
/// <summary>Rotation speed (quaternions?/sec).</summary>
[Export(PropertyHint.Range, "0, 100, 0.1")]
public float RotationSpeed { get; set; } = 12.0f;
/// <summary>Player speed (meters/sec).</summary>
[Export(PropertyHint.Range, "0, 100, 0.1")]
public float MoveSpeed { get; set; } = 8f;
/// <summary>Player speed (meters^2/sec).</summary>
[Export(PropertyHint.Range, "0, 100, 0.1")]
public float Acceleration { get; set; } = 4f;
[Export(PropertyHint.Range, "1, 200, 1")] public int CurrentHP { get; set; }
[Export(PropertyHint.Range, "1, 200, 1")] public int MaximumHP { get; set; }
[Export(PropertyHint.Range, "1, 200, 1")] public int CurrentVT { get; set; }
[Export(PropertyHint.Range, "1, 200, 1")] public int MaximumVT { get; set; }
[Export] public int CurrentExp { get; set; }
[Export] public int ExpToNextLevel { get; set; }
[Export] public int CurrentLevel { get; set; }
[Export] public int CurrentAttack { get; set; }
[Export] public int BonusAttack { get; set; }
[Export] public int MaxAttack { get; set; }
[Export] public int CurrentDefense { get; set; }
[Export] public int BonusDefense { get; set; }
[Export] public int MaxDefense { get; set; }
[Export(PropertyHint.Range, "0, 1, 0.01")]
public double Luck { get; set; }
}