mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
25 lines
347 B
C
25 lines
347 B
C
|
#ifndef COOLDOWN_H
|
||
|
#define COOLDOWN_H
|
||
|
|
||
|
#include "core/reference.h"
|
||
|
|
||
|
class Cooldown : public Reference {
|
||
|
GDCLASS(Cooldown, Reference);
|
||
|
|
||
|
public:
|
||
|
int get_spell_id();
|
||
|
void set_spell_id(int value);
|
||
|
|
||
|
int get_remaining();
|
||
|
void set_remaining(int value);
|
||
|
|
||
|
protected:
|
||
|
static void _bind_methods();
|
||
|
|
||
|
private:
|
||
|
int _spell_id;
|
||
|
int _remaining;
|
||
|
};
|
||
|
|
||
|
#endif
|