2023-07-21 09:50:06 +00:00
|
|
|
/**
|
|
|
|
* limbo_string_names.h
|
|
|
|
* =============================================================================
|
|
|
|
* Copyright 2021-2023 Serhii Snitsaruk
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style
|
|
|
|
* license that can be found in the LICENSE file or at
|
|
|
|
* https://opensource.org/licenses/MIT.
|
|
|
|
* =============================================================================
|
|
|
|
*/
|
2022-08-28 10:54:34 +00:00
|
|
|
|
|
|
|
#ifndef LIMBO_STRING_NAMES_H
|
|
|
|
#define LIMBO_STRING_NAMES_H
|
|
|
|
|
2024-01-06 20:04:34 +00:00
|
|
|
#ifdef LIMBOAI_MODULE
|
2022-12-15 07:26:52 +00:00
|
|
|
#include "core/string/string_name.h"
|
2022-08-28 10:54:34 +00:00
|
|
|
#include "core/typedefs.h"
|
2024-01-06 20:04:34 +00:00
|
|
|
#include "modules/register_module_types.h"
|
|
|
|
#endif // LIMBOAI_MODULE
|
|
|
|
|
|
|
|
#ifdef LIMBOAI_GDEXTENSION
|
|
|
|
#include <godot_cpp/variant/string_name.hpp>
|
|
|
|
using namespace godot;
|
|
|
|
#endif // LIMBOAI_GDEXTENSION
|
2022-08-28 10:54:34 +00:00
|
|
|
|
|
|
|
class LimboStringNames {
|
2022-12-15 07:26:52 +00:00
|
|
|
friend void initialize_limboai_module(ModuleInitializationLevel p_level);
|
|
|
|
friend void uninitialize_limboai_module(ModuleInitializationLevel p_level);
|
2022-08-28 10:54:34 +00:00
|
|
|
|
|
|
|
static LimboStringNames *singleton;
|
|
|
|
|
|
|
|
static void create() { singleton = memnew(LimboStringNames); }
|
|
|
|
static void free() {
|
|
|
|
memdelete(singleton);
|
|
|
|
singleton = nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
LimboStringNames();
|
|
|
|
|
|
|
|
public:
|
|
|
|
_FORCE_INLINE_ static LimboStringNames *get_singleton() { return singleton; }
|
|
|
|
|
|
|
|
StringName _generate_name;
|
|
|
|
StringName _setup;
|
|
|
|
StringName _enter;
|
|
|
|
StringName _exit;
|
|
|
|
StringName _tick;
|
2022-08-30 16:48:49 +00:00
|
|
|
StringName behavior_tree_finished;
|
2022-09-28 10:48:45 +00:00
|
|
|
StringName setup;
|
|
|
|
StringName entered;
|
|
|
|
StringName exited;
|
|
|
|
StringName updated;
|
|
|
|
StringName _update;
|
2022-09-29 10:54:07 +00:00
|
|
|
StringName state_changed;
|
2022-11-22 22:15:48 +00:00
|
|
|
StringName _get_configuration_warning;
|
2022-08-28 10:54:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LIMBO_STRING_NAMES_H
|