aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/utility/Utilities.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-02-02 21:19:21 +0100
committer hop311 <hop3114@gmail.com>2024-02-19 20:17:31 +0100
commit1455861632cd50f48f6e8ef8c50004087eff36f1 (patch)
tree5ce200d70f5f12d76dfd489ed06a6bb88204fd1c /extension/src/openvic-extension/utility/Utilities.hpp
parent576986af57db806af284bbc05a799e72f113f35c (diff)
Basic Nation Management Screen frameworknation-management-screens
Diffstat (limited to 'extension/src/openvic-extension/utility/Utilities.hpp')
-rw-r--r--extension/src/openvic-extension/utility/Utilities.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/extension/src/openvic-extension/utility/Utilities.hpp b/extension/src/openvic-extension/utility/Utilities.hpp
index 9bbc700..9b45abc 100644
--- a/extension/src/openvic-extension/utility/Utilities.hpp
+++ b/extension/src/openvic-extension/utility/Utilities.hpp
@@ -11,23 +11,23 @@
namespace OpenVic::Utilities {
- inline std::string godot_to_std_string(godot::String const& str) {
+ _FORCE_INLINE_ std::string godot_to_std_string(godot::String const& str) {
return str.ascii().get_data();
}
- inline godot::String std_to_godot_string(std::string const& str) {
+ _FORCE_INLINE_ godot::String std_to_godot_string(std::string const& str) {
return str.c_str();
}
- inline godot::String std_view_to_godot_string(std::string_view str) {
+ _FORCE_INLINE_ godot::String std_view_to_godot_string(std::string_view const& str) {
return std_to_godot_string(static_cast<std::string>(str));
}
- inline godot::StringName std_to_godot_string_name(std::string const& str) {
+ _FORCE_INLINE_ godot::StringName std_to_godot_string_name(std::string const& str) {
return str.c_str();
}
- inline godot::StringName std_view_to_godot_string_name(std::string_view str) {
+ _FORCE_INLINE_ godot::StringName std_view_to_godot_string_name(std::string_view const& str) {
return std_to_godot_string_name(static_cast<std::string>(str));
}
@@ -37,15 +37,15 @@ namespace OpenVic::Utilities {
godot::String date_to_formatted_string(Date date);
- inline godot::Color to_godot_color(IsColour auto colour) {
+ _FORCE_INLINE_ godot::Color to_godot_color(IsColour auto colour) {
return { colour.redf(), colour.greenf(), colour.bluef(), colour.alphaf() };
}
- inline godot::Vector2i to_godot_ivec2(ivec2_t vec) {
+ _FORCE_INLINE_ godot::Vector2i to_godot_ivec2(ivec2_t vec) {
return { vec.x, vec.y };
}
- inline godot::Vector2 to_godot_fvec2(fvec2_t vec) {
+ _FORCE_INLINE_ godot::Vector2 to_godot_fvec2(fvec2_t vec) {
return { vec.x, vec.y };
}