-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathgodotcord_user_manager.h
More file actions
45 lines (35 loc) · 895 Bytes
/
godotcord_user_manager.h
File metadata and controls
45 lines (35 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef GODOTCORD_USER_MANAGER_H
#define GODOTCORD_USER_MANAGER_H
#include "godotcord_user.h"
#include "core/object.h"
class GodotcordUserManager : public Object {
GDCLASS(GodotcordUserManager, Object)
public:
enum UserFlag {
PARTNER = 2,
HYPE_SQUAD_EVENTS = 4,
HYPE_SQUAD_HOUSE_1 = 64,
HYPE_SQUAD_HOUSE_2 = 128,
HYPE_SQUAD_HOUSE_3 = 256,
};
enum PremiumType {
ERROR = -1,
NONE = 0,
TIER_1,
TIER_2
};
protected:
static void _bind_methods();
public:
static GodotcordUserManager *singleton;
static GodotcordUserManager *get_singleton();
void get_user(int64_t p_user_id);
Ref<GodotcordUser> get_current_user();
PremiumType get_current_user_premium_type();
bool has_current_user_flag(UserFlag p_flag);
void init();
GodotcordUserManager();
};
VARIANT_ENUM_CAST(GodotcordUserManager::UserFlag);
VARIANT_ENUM_CAST(GodotcordUserManager::PremiumType);
#endif