mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-11 13:21:10 +01:00
Updated register_types.h
This commit is contained in:
parent
b6648f707e
commit
d8eec349a5
@ -36,31 +36,37 @@
|
|||||||
|
|
||||||
#include "core/engine.h"
|
#include "core/engine.h"
|
||||||
#include "data_buffer.h"
|
#include "data_buffer.h"
|
||||||
|
#include "input_network_encoder.h"
|
||||||
#include "networked_controller.h"
|
#include "networked_controller.h"
|
||||||
#include "scene_diff.h"
|
#include "scene_diff.h"
|
||||||
#include "scene_synchronizer.h"
|
#include "scene_synchronizer.h"
|
||||||
#include "scene_synchronizer_debugger.h"
|
#include "scene_synchronizer_debugger.h"
|
||||||
#include "input_network_encoder.h"
|
|
||||||
|
|
||||||
void register_network_synchronizer_types() {
|
void register_network_synchronizer_types(ModuleRegistrationLevel p_level) {
|
||||||
ClassDB::register_class<DataBuffer>();
|
if (p_level == MODULE_REGISTRATION_LEVEL_SINGLETON) {
|
||||||
ClassDB::register_class<SceneDiff>();
|
ClassDB::register_class<SceneSynchronizerDebugger>();
|
||||||
ClassDB::register_class<NetworkedController>();
|
memnew(SceneSynchronizerDebugger);
|
||||||
ClassDB::register_class<SceneSynchronizer>();
|
Engine::get_singleton()->add_singleton(Engine::Singleton("SceneSynchronizerDebugger", SceneSynchronizerDebugger::singleton()));
|
||||||
ClassDB::register_class<SceneSynchronizerDebugger>();
|
|
||||||
ClassDB::register_class<InputNetworkEncoder>();
|
|
||||||
|
|
||||||
memnew(SceneSynchronizerDebugger);
|
GLOBAL_DEF("NetworkSynchronizer/debug_server_speedup", false);
|
||||||
Engine::get_singleton()->add_singleton(Engine::Singleton("SceneSynchronizerDebugger", SceneSynchronizerDebugger::singleton()));
|
GLOBAL_DEF("NetworkSynchronizer/debug_doll_speedup", false);
|
||||||
|
GLOBAL_DEF("NetworkSynchronizer/log_debug_warnings_and_messages", true);
|
||||||
|
GLOBAL_DEF("NetworkSynchronizer/debugger/dump_enabled", false);
|
||||||
|
GLOBAL_DEF("NetworkSynchronizer/debugger/dump_classes", Array());
|
||||||
|
GLOBAL_DEF("NetworkSynchronizer/debugger/log_debug_fps_warnings", true);
|
||||||
|
}
|
||||||
|
|
||||||
GLOBAL_DEF("NetworkSynchronizer/debug_server_speedup", false);
|
if (p_level == MODULE_REGISTRATION_LEVEL_SCENE) {
|
||||||
GLOBAL_DEF("NetworkSynchronizer/debug_doll_speedup", false);
|
ClassDB::register_class<DataBuffer>();
|
||||||
GLOBAL_DEF("NetworkSynchronizer/log_debug_warnings_and_messages", true);
|
ClassDB::register_class<SceneDiff>();
|
||||||
GLOBAL_DEF("NetworkSynchronizer/debugger/dump_enabled", false);
|
ClassDB::register_class<NetworkedController>();
|
||||||
GLOBAL_DEF("NetworkSynchronizer/debugger/dump_classes", Array());
|
ClassDB::register_class<SceneSynchronizer>();
|
||||||
GLOBAL_DEF("NetworkSynchronizer/debugger/log_debug_fps_warnings", true);
|
ClassDB::register_class<InputNetworkEncoder>();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void unregister_network_synchronizer_types() {
|
void unregister_network_synchronizer_types(ModuleRegistrationLevel p_level) {
|
||||||
memdelete(SceneSynchronizerDebugger::singleton());
|
if (p_level == MODULE_REGISTRATION_LEVEL_SINGLETON) {
|
||||||
|
memdelete(SceneSynchronizerDebugger::singleton());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef REGISTER_NETWORK_SYNCHRONIZER_TYPES_H
|
||||||
|
#define REGISTER_NETWORK_SYNCHRONIZER_TYPES_H
|
||||||
|
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
/* register_types.h */
|
/* register_types.h */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
@ -32,5 +35,9 @@
|
|||||||
@author AndreaCatania
|
@author AndreaCatania
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void register_network_synchronizer_types();
|
#include "modules/register_module_types.h"
|
||||||
void unregister_network_synchronizer_types();
|
|
||||||
|
void register_network_synchronizer_types(ModuleRegistrationLevel p_level);
|
||||||
|
void unregister_network_synchronizer_types(ModuleRegistrationLevel p_level);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user