Skip to content

Commit

Permalink
fix summator module
Browse files Browse the repository at this point in the history
  • Loading branch information
wiseblank committed Jul 19, 2024
1 parent 9b63b21 commit 9f6e665
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
6 changes: 6 additions & 0 deletions modules/summator/SCsub
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SCsub
#!/usr/bin/env python

Import('env')

env.add_source_files(env.modules_sources, "*.cpp") # Add all cpp files to the build
5 changes: 0 additions & 5 deletions modules/summator/SCsub.py

This file was deleted.

19 changes: 19 additions & 0 deletions modules/summator/register_types.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* register_types.cpp */

#include "register_types.h"

#include "core/object/class_db.h"
#include "summator.h"

void initialize_summator_module(ModuleInitializationLevel p_level) {
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
return;
}
ClassDB::register_class<Summator>();
}

void uninitialize_summator_module(ModuleInitializationLevel p_level) {
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
return;
}
}

0 comments on commit 9f6e665

Please sign in to comment.