World changes
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
using GameServer.Dungeon;
|
||||
|
||||
namespace GameServer.Shared;
|
||||
|
||||
/// <summary>
|
||||
/// Interface for player combat state, implemented by both dungeon PlayerInstance
|
||||
/// and world WorldPlayerCombatState. Provides the combat-relevant surface that
|
||||
/// MobAI and CombatCalculator need.
|
||||
/// </summary>
|
||||
public interface IPlayerTarget
|
||||
{
|
||||
ulong CharacterId { get; }
|
||||
string CharacterName { get; }
|
||||
|
||||
// Position
|
||||
float X { get; }
|
||||
float Y { get; }
|
||||
|
||||
// Vitals
|
||||
float Health { get; set; }
|
||||
float MaxHealth { get; }
|
||||
bool IsAlive { get; set; }
|
||||
bool IsInvulnerable { get; }
|
||||
|
||||
// Combat stats
|
||||
int Strength { get; }
|
||||
int Intelligence { get; }
|
||||
int Endurance { get; }
|
||||
int Dexterity { get; }
|
||||
int Armor { get; }
|
||||
string WeaponDamageTypeKey { get; }
|
||||
Dictionary<string, float> Resistances { get; }
|
||||
|
||||
// Status effects
|
||||
List<PlayerStatusEffect> StatusEffects { get; }
|
||||
bool IsStunned { get; }
|
||||
bool IsRooted { get; }
|
||||
bool IsFeared { get; }
|
||||
|
||||
// Combat tracking
|
||||
bool IsInCombat { get; set; }
|
||||
long LastCombatTick { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user