Skip to content

Commit

Permalink
Move modules outside.
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Oct 12, 2024
1 parent 7765596 commit 7ec6b33
Show file tree
Hide file tree
Showing 109 changed files with 27 additions and 23 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions modules/ecs_core/SCsub
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env python

Import("env")
Import("env_modules")

env_module = env_modules.Clone()

env_module.add_source_files(env.modules_sources, "*.cpp")
env_module.add_source_files(env.modules_sources, "components/*.cpp")
env_module.add_source_files(env.modules_sources, "components/physics/*.cpp")
env_module.add_source_files(env.modules_sources, "editor_plugins/*.cpp")
env_module.add_source_files(env.modules_sources, "nodes/*.cpp")
env_module.add_source_files(env.modules_sources, "databags/*.cpp")
env_module.add_source_files(env.modules_sources, "systems/*.cpp")
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
def can_build(env, platform):
env.module_add_dependencies("godot", ["godex"])
env.module_add_dependencies("ecs_core", ["godex"])
return True


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static void _editor_init() {
EditorNode::get_singleton()->add_editor_plugin(worldecs_plugin);
}

void initialize_godot_module(ModuleInitializationLevel p_level) {
void initialize_ecs_core_module(ModuleInitializationLevel p_level) {
if (p_level == MODULE_INITIALIZATION_LEVEL_SCENE) {
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Nodes
ClassDB::register_class<ScriptEcs>();
Expand Down Expand Up @@ -154,7 +154,7 @@ void initialize_godot_module(ModuleInitializationLevel p_level) {
}
}

void uninitialize_godot_module(ModuleInitializationLevel p_level) {
void uninitialize_ecs_core_module(ModuleInitializationLevel p_level) {
if (p_level == MODULE_INITIALIZATION_LEVEL_SCENE) {
memdelete(ScriptEcs::get_singleton());
}
Expand Down
10 changes: 10 additions & 0 deletions modules/ecs_core/register_types.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

#ifndef GODOT_REGISTER_TYPES_H
#define GODOT_REGISTER_TYPES_H

#include "modules/register_module_types.h"

void initialize_ecs_core_module(ModuleInitializationLevel p_level);
void uninitialize_ecs_core_module(ModuleInitializationLevel p_level);

#endif // GODOT_REGISTER_TYPES_H
14 changes: 0 additions & 14 deletions modules/godex/modules/godot/SCsub

This file was deleted.

6 changes: 0 additions & 6 deletions modules/godex/modules/godot/register_types.h

This file was deleted.

0 comments on commit 7ec6b33

Please sign in to comment.