mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
27 lines
382 B
C++
27 lines
382 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);
|
|
|
|
bool update(float delta);
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
private:
|
|
int _spell_id;
|
|
int _remaining;
|
|
};
|
|
|
|
#endif
|