limboai/util/limbo_string_names.cpp

61 lines
1.9 KiB
C++
Raw Normal View History

/**
* limbo_string_names.cpp
* =============================================================================
* 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
#include "limbo_string_names.h"
#include "godot_cpp/variant/string_name.hpp"
2022-08-28 10:54:34 +00:00
2024-01-07 04:54:17 +00:00
#ifdef LIMBOAI_MODULE
#define SN(m_arg) (StaticCString::create(m_arg))
#endif // LIMBOAI_MODULE
#ifdef LIMBOAI_GDEXTENSION
#define SN(m_arg) (StringName(m_arg))
#endif // LIMBOAI_GDEXTENSION
2022-08-28 10:54:34 +00:00
LimboStringNames *LimboStringNames::singleton = nullptr;
LimboStringNames::LimboStringNames() {
2024-01-07 04:54:17 +00:00
_generate_name = SN("_generate_name");
_setup = SN("_setup");
_enter = SN("_enter");
_exit = SN("_exit");
_tick = SN("_tick");
behavior_tree_finished = SN("behavior_tree_finished");
setup = SN("setup");
entered = SN("entered");
exited = SN("exited");
updated = SN("updated");
_update = SN("_update");
state_changed = SN("state_changed");
_get_configuration_warning = SN("_get_configuration_warning");
changed = SN("changed");
changed = SN("emit_changed");
_weight_ = SN("_weight_");
error_value = SN("error_value");
behavior_tree = SN("behavior_tree");
2024-01-07 05:51:34 +00:00
_draw_success_status = SN("_draw_success_status");
_draw_failure_status = SN("_draw_failure_status");
_draw_running_status = SN("_draw_running_status");
LimboExtraClock = SN("LimboExtraClock");
EditorIcons = SN("EditorIcons");
BTAlwaysSucceed = SN("BTAlwaysSucceed");
BTAlwaysFail = SN("BTAlwaysFail");
bold = SN("bold");
EditorFonts = SN("EditorFonts");
item_collapsed = SN("item_collapsed");
2024-01-07 12:36:59 +00:00
pressed = SN("pressed");
StatusWarning = SN("StatusWarning");
2024-01-07 12:45:27 +00:00
mode_changed = SN("mode_changed");
connect = SN("connect");
2024-01-07 04:54:17 +00:00
EVENT_FINISHED = "finished";
repeat_forever.parse_utf8("Repeat ∞");
2022-08-28 10:54:34 +00:00
}