2019-05-06 18:07:07 +02:00
|
|
|
#ifndef CATEGORY_COOLDOWN_H
|
|
|
|
#define CATEGORY_COOLDOWN_H
|
|
|
|
|
|
|
|
#include "core/reference.h"
|
|
|
|
|
|
|
|
class CategoryCooldown : public Reference {
|
|
|
|
GDCLASS(CategoryCooldown, Reference);
|
|
|
|
|
|
|
|
public:
|
2019-08-05 01:36:33 +02:00
|
|
|
int get_category_id() const;
|
|
|
|
void set_category_id(const int value);
|
2019-05-06 18:07:07 +02:00
|
|
|
|
2019-08-05 01:36:33 +02:00
|
|
|
float get_remaining() const;
|
|
|
|
void set_remaining(const float value);
|
2020-01-09 04:27:19 +01:00
|
|
|
|
|
|
|
bool update(const float delta);
|
2019-05-06 18:07:07 +02:00
|
|
|
|
2019-09-13 15:21:07 +02:00
|
|
|
Dictionary to_dict();
|
|
|
|
void from_dict(const Dictionary &dict);
|
|
|
|
|
|
|
|
Dictionary _to_dict();
|
|
|
|
void _from_dict(const Dictionary &dict);
|
|
|
|
|
2019-05-06 18:07:07 +02:00
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
|
|
|
private:
|
|
|
|
int _category_id;
|
2019-08-05 01:36:33 +02:00
|
|
|
float _remaining;
|
2019-05-06 18:07:07 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|