28 lines
1.1 KiB
Markdown
28 lines
1.1 KiB
Markdown
# StarOpenSource's CORE modules
|
|
|
|
## Setting up
|
|
```bash
|
|
mkdir -p addons
|
|
git clone https://git.staropensource.de/StarOpenSource/CORE-StarOpenSource-modules.git addons/sos_core_modules
|
|
```
|
|
|
|
## References
|
|
### `src/manager.gd`
|
|
#### *void* <u>register_modules</u>()
|
|
Registers all CORE modules.
|
|
#### *void* <u>unregister_modules</u>()
|
|
Unregisters all CORE modules.
|
|
|
|
### `src/modules/splashes.gd`
|
|
#### *CoreBaseModule* <u>add_splash</u>(*String* <u>category</u>, *String* <u>splash</u>)
|
|
Adds a splash to the specified category.
|
|
#### *CoreBaseModule* <u>add_splashes</u>(*String* <u>category</u>, *Array* <u>splashes</u>)
|
|
Adds an array of splashes to the specified category.
|
|
#### *CoreBaseModule* <u>copy_splashes</u>(*String* <u>source_category</u>, *String* <u>target_category</u>)
|
|
Copies all splashes from the source category to the target category.
|
|
#### *Array* <u>get_categories</u>()
|
|
Returns a list of all categories.
|
|
#### *CoreBaseModule* <u>delete_category</u>(*String* <u>category</u>)
|
|
Removes the specified category.
|
|
#### *String* <u>get_random_splash</u>(*String* <u>category</u>)
|
|
Returns a random splash.
|