entity_spell_system/data/xp_data.h

26 lines
395 B
C
Raw Normal View History

2019-04-20 14:02:55 +02:00
#ifndef LEVEL_XP_H
#define LEVEL_XP_H
#include "core/resource.h"
#include "core/variant.h"
#include "core/vector.h"
class XPData : public Resource {
GDCLASS(XPData, Resource);
private:
PoolIntArray *_xp_required;
protected:
static void _bind_methods();
public:
int get_max_level();
int xp_required_for_level(int level);
bool can_level_up(int level);
XPData();
~XPData();
};
#endif