Skip to main content

CoreBaseModule

Provides a basic template and a common foundation for building CORE modules.
It provides common functions and variables used in all CORE modules.

Variables

Core core

Contains a reference to the CORE Object.

CoreBaseModule logger = core.logger

Set to CORE's logger implementation.

CoreLoggerInstance loggeri

Set to a logger instance with the path you supplied to core.register_custom_module. You should use this over logger.

bool initialized = false

Marks a module as fully initialized and ready. Don't forget to set this!

Functions

void _initialize()

CORE's replacement for Object._init and Node._ready.
It's strongly recommended to initialize your module here or stuff might break.

void _cleanup()

Called when CORE is about to cleanup.
Use this function to remove any children from the SceneTree and free any nodes.
If not done you might cause a memory leak.

void _schedule()

Called periodically by CORE's scheduler.
Use this function to clean up any temporary things.

void _pull_config()

Called after CORE's configuration got updated.
Probably useless to your module, unless you want to modify another module's settings.