feat: Added DamageDescription class

+ Added onPlayerDamage event
This commit is contained in:
AURUMVORXX
2024-11-05 23:44:22 +03:00
parent 7a1d11543b
commit 4efda3e2e0
12 changed files with 193 additions and 8 deletions

View File

@@ -0,0 +1,27 @@
#ifndef _DAMAGEDESCRIPTION_H_
#define _DAMAGEDESCRIPTION_H_
#include <string>
#include <NoNut/core/Class.h>
#include <NoNut/core/CustomTypes.h>
namespace nonut
{
class DamageDescription : public Class
{
public:
DamageDescription();
explicit DamageDescription(SQObject object);
// Properties
Property<Int> flags;
Property<Int> damage;
Property<String> item_instance;
Property<Int> distance;
Property<Int> spell_id;
Property<Int> spell_level;
Property<String> node;
};
}
#endif