Files
systemrevivalserver/Game/Dungeon/PlayerInstance.cs
T
2025-12-06 18:06:03 -05:00

44 lines
1.3 KiB
C#

namespace Server.Game.Dungeon;
/// <summary>
/// Runtime instance of a player in a dungeon
/// </summary>
public class PlayerInstance
{
public ulong CharacterId { get; set; }
public string CharacterName { get; set; } = "";
public float X { get; set; }
public float Y { get; set; }
public float Rotation { get; set; }
public float Health { get; set; }
public float MaxHealth { get; set; }
public float Mana { get; set; }
public float MaxMana { get; set; }
public float Stamina { get; set; }
public float MaxStamina { get; set; }
public float MoveSpeed { get; set; } = 100f;
public float AttackSpeed { get; set; } = 1f;
public int Strength { get; set; }
public int Intelligence { get; set; }
public bool IsAlive { get; set; } = true;
public bool IsInCombat { get; set; }
// Session stats
public int XpGained { get; set; }
public int MobsKilled { get; set; }
public int PlayersKilled { get; set; }
// Tick tracking
public long LastAttackTick { get; set; }
public long LastCombatTick { get; set; }
// Input state (set by handler)
public float InputX { get; set; }
public float InputY { get; set; }
public bool WantsToAttack { get; set; }
public ulong? AttackTargetId { get; set; }
}