mirror of
https://github.com/Relintai/godot_fastnoise.git
synced 2024-11-12 10:15:21 +01:00
Updated register_types.h and cpp to the current godot 4 style.
This commit is contained in:
parent
46bb1f610b
commit
6d0449cdac
@ -8,19 +8,15 @@
|
||||
#include "core/object/class_db.h"
|
||||
#endif
|
||||
|
||||
#include "noise.h"
|
||||
#include "fastnoise_noise_params.h"
|
||||
#include "noise.h"
|
||||
|
||||
|
||||
void register_fastnoise_types() {
|
||||
|
||||
ClassDB::register_class<FastNoise>();
|
||||
ClassDB::register_class<FastnoiseNoiseParams>();
|
||||
void initialize_fastnoise_module(ModuleInitializationLevel p_level) {
|
||||
if (p_level == MODULE_INITIALIZATION_LEVEL_SCENE) {
|
||||
GDREGISTER_CLASS(FastNoise);
|
||||
GDREGISTER_CLASS(FastnoiseNoiseParams);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void unregister_fastnoise_types() {
|
||||
|
||||
void uninitialize_fastnoise_module(ModuleInitializationLevel p_level) {
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,2 +1,10 @@
|
||||
void register_fastnoise_types();
|
||||
void unregister_fastnoise_types();
|
||||
|
||||
#ifndef GODOT_FASTNOISE_REGISTER_TYPES_H
|
||||
#define GODOT_FASTNOISE_REGISTER_TYPES_H
|
||||
|
||||
#include "modules/register_module_types.h"
|
||||
|
||||
void initialize_fastnoise_module(ModuleInitializationLevel p_level);
|
||||
void uninitialize_fastnoise_module(ModuleInitializationLevel p_level);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user