#ifndef USER_MANAGER_STATIC_H #define USER_MANAGER_STATIC_H #include "core/os/rw_lock.h" #include "core/reference.h" #include "core/ustring.h" #include "core/vector.h" #include "user_manager.h" class User; class UserManagerStatic : public UserManager { GDCLASS(UserManagerStatic, UserManager); public: Ref _get_user(const int id); Ref _get_user_name(const String &user); void _save_user(Ref user); Ref _create_user(); bool _is_username_taken(const String &user_name); bool _is_email_taken(const String &email); Vector> get_all(); Vector get_users(); void set_users(const Vector &users); UserManagerStatic(); ~UserManagerStatic(); protected: static void _bind_methods(); Vector> _users; }; #endif