mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-12 22:01:10 +01:00
Fix compiling the jsonrpc module.
This commit is contained in:
parent
96702b39c8
commit
01d1d1aa24
@ -31,13 +31,13 @@
|
||||
#ifndef JSONRPC_H
|
||||
#define JSONRPC_H
|
||||
|
||||
#include "core/object.h"
|
||||
#include "core/variant.h"
|
||||
#include "core/object/object.h"
|
||||
#include "core/variant/variant.h"
|
||||
|
||||
class JSONRPC : public Object {
|
||||
GDCLASS(JSONRPC, Object)
|
||||
|
||||
Map<String, Object *> method_scopes;
|
||||
RBMap<String, Object *> method_scopes;
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
@ -29,12 +29,16 @@
|
||||
/**************************************************************************/
|
||||
|
||||
#include "register_types.h"
|
||||
#include "core/class_db.h"
|
||||
|
||||
#include "core/object/class_db.h"
|
||||
|
||||
#include "jsonrpc.h"
|
||||
|
||||
void register_jsonrpc_types() {
|
||||
ClassDB::register_class<JSONRPC>();
|
||||
void register_jsonrpc_types(ModuleRegistrationLevel p_level) {
|
||||
if (p_level == MODULE_REGISTRATION_LEVEL_SCENE) {
|
||||
ClassDB::register_class<JSONRPC>();
|
||||
}
|
||||
}
|
||||
|
||||
void unregister_jsonrpc_types() {
|
||||
void unregister_jsonrpc_types(ModuleRegistrationLevel p_level) {
|
||||
}
|
||||
|
@ -31,7 +31,9 @@
|
||||
#ifndef JSONRPC_REGISTER_TYPES_H
|
||||
#define JSONRPC_REGISTER_TYPES_H
|
||||
|
||||
void register_jsonrpc_types();
|
||||
void unregister_jsonrpc_types();
|
||||
#include "modules/register_module_types.h"
|
||||
|
||||
void register_jsonrpc_types(ModuleRegistrationLevel p_level);
|
||||
void unregister_jsonrpc_types(ModuleRegistrationLevel p_level);
|
||||
|
||||
#endif // JSONRPC_REGISTER_TYPES_H
|
||||
|
Loading…
Reference in New Issue
Block a user