mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
43 lines
855 B
C++
43 lines
855 B
C++
#ifndef AURA_INFOS_H
|
|
#define AURA_INFOS_H
|
|
|
|
#include "../entities/entity.h"
|
|
#include "core/reference.h"
|
|
|
|
class Entity;
|
|
class Aura;
|
|
|
|
class AuraApplyInfo : public Reference {
|
|
GDCLASS(AuraApplyInfo, Reference);
|
|
|
|
public:
|
|
Entity *get_caster() const;
|
|
void set_caster(Entity *caster);
|
|
void set_caster_bind(Node *caster);
|
|
|
|
Entity *get_target() const;
|
|
void set_target(Entity *caster);
|
|
void set_target_bind(Node *caster);
|
|
|
|
float get_spell_scale() const;
|
|
void set_spell_scale(float value);
|
|
|
|
Ref<Aura> get_aura() const;
|
|
void set_aura(Ref<Aura> aura);
|
|
|
|
AuraApplyInfo();
|
|
AuraApplyInfo(Entity *_caster, Entity *_target, float _spell_scale, Aura *_aura);
|
|
AuraApplyInfo(Entity *_caster, Entity *_target, float _spell_scale);
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
private:
|
|
Entity *_caster;
|
|
Entity *_target;
|
|
float _spell_scale;
|
|
Aura *_aura;
|
|
};
|
|
|
|
#endif
|