Skip to content

Conversation

@SpinnerX
Copy link
Member

@SpinnerX SpinnerX commented Dec 7, 2025

Resolves #156

This PR introduces fundamental changes to TheAtlasEngine, specifically with how game objects are represented. Ensuring safer and idiomatic ways to ensure game object are present in std::optional before performing an operation with the game object.

Changelogs

  • Renamed atlas::scene_object -> atlas::game_object.
  • Added alias called atlas::game_object_optional which is to std::optional<game_object>.
  • Extended atlas::scene_object via inheriting from flecs::entity.
  • Applied API changes for entity creation to return atlas::game_object.
  • Removed the default constructor from atlas::scene_object.
  • Renamed atlas::scene_scope -> atlas::scene.
  • Renamed atlas::world_scope -> atlas::world.
  • UI code cleanup in the editor.
  • Fixed atlas::ui::draw_input_text to correctly rename the selected entities.

…tring&) API instead of calling it create(const string&)
…jects through uscene_object and the entity API from the scene class
@SpinnerX SpinnerX changed the title Scene Objects Refactor and Scene Code Cleanup ✨ Scene Objects Refactor and Scene Code Cleanup Dec 7, 2025
@SpinnerX SpinnerX changed the title ✨ Scene Objects Refactor and Scene Code Cleanup ✨ Scene Objects Refactor Dec 9, 2025
Copy link
Member Author

@SpinnerX SpinnerX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging this PR.

@SpinnerX SpinnerX merged commit 718844e into main Dec 16, 2025
6 checks passed
@SpinnerX SpinnerX deleted the scene_and_game_objects_refactor branch December 16, 2025 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

View-like atlas::scene_object which would be atlas::scene_object_view

2 participants