diff options
Diffstat (limited to 'extension/src/openvic-extension/singletons/GameSingleton.cpp')
-rw-r--r-- | extension/src/openvic-extension/singletons/GameSingleton.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extension/src/openvic-extension/singletons/GameSingleton.cpp b/extension/src/openvic-extension/singletons/GameSingleton.cpp index 12e2df1..ef19a6c 100644 --- a/extension/src/openvic-extension/singletons/GameSingleton.cpp +++ b/extension/src/openvic-extension/singletons/GameSingleton.cpp @@ -159,6 +159,10 @@ float GameSingleton::get_map_aspect_ratio() const { return static_cast<float>(get_map_width()) / static_cast<float>(get_map_height()); } +Vector2 GameSingleton::map_position_to_world_coords(fvec2_t const& position) const { + return Utilities::to_godot_fvec2(position) / get_map_dims(); +} + Ref<Texture2DArray> GameSingleton::get_terrain_texture() const { return terrain_texture; } |