Skip to content

features: added projects#14

Merged
sheazywi merged 5 commits intomainfrom
projects
May 3, 2025
Merged

features: added projects#14
sheazywi merged 5 commits intomainfrom
projects

Conversation

@sheazywi
Copy link
Member

@sheazywi sheazywi commented May 3, 2025

No description provided.

Pier-Olivier Boulianne added 3 commits April 27, 2025 14:37
- StarEditor will now prompt to open project on startup if no command line args are set
- Fixed crash when editing already set script module class name
- Added UI::ScopedStyleColor utility class
- Fixed crash when duplicating entities (entity name string memory would be moved and later referenced)
- Delete key now deletes entities from scene + more
- Moved Box2D body type conversion functions to new Physics2D header
- Exposed Rigidbody2D body type Get/Set to C# API
- Misc other fixes/changes
@sheazywi sheazywi requested a review from Copilot May 3, 2025 17:28
@sheazywi sheazywi self-assigned this May 3, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces project functionality into the engine and editor, refactoring project handling and related integrations while adding new API methods to support these features.

  • Added new project management functions in the EditorLayer and Project modules.
  • Updated the ImGui layer to expose active widget IDs.
  • Adjusted asset path handling in the Content Browser and Scene Hierarchy panels, and expanded math functionality in Vector2.

Reviewed Changes

Copilot reviewed 28 out of 31 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
StarEngine/src/StarEngine/ImGui/ImGuiLayer.h Added GetActiveWidgetID API declaration.
StarEngine/src/StarEngine/ImGui/ImGuiLayer.cpp Implemented GetActiveWidgetID using internal ImGui state.
StarEngine/src/StarEngine/Core/Application.cpp Removed ScriptEngine initialization to defer it until project loading.
StarEngine/src/StarEngine.h Included new Project header.
StarEngine-ScriptCore/Source/StarEngine/Vector2.cs Added Length and LengthSquared methods.
StarEngine-ScriptCore/Source/StarEngine/Scene/Components.cs Added BodyType enum and new properties for rigid body components.
StarEngine-ScriptCore/Source/StarEngine/InternalCalls.cs Added internal project-related and physics interop calls.
StarEditor/src/Panels/SceneHierarchyPanel.cpp Updated style handling and asset path resolution in drag-and-drop payload.
StarEditor/src/Panels/ContentBrowserPanel.h & .cpp Added base directory handling and updated initialization from the Project system.
StarEditor/src/EditorLayer.h & .cpp Introduced new project commands and integrated project loading with editor initialization.
StarEditor/SandboxProject/Assets/Scripts/Source/Player.cs Modified Player component by removing the default Speed initialization.
Files not reviewed (3)
  • StarEditor/SandboxProject/Assets/Sandbox.starproj: Language not supported
  • StarEditor/premake5.lua: Language not supported
  • StarEngine/premake5.lua: Language not supported
Comments suppressed due to low confidence (1)

StarEditor/src/Panels/SceneHierarchyPanel.cpp:412

  • Changing the drag-and-drop payload path calculation from a relative path (using the base asset directory) to a direct path may alter how textures are resolved. Ensure this update is aligned with the intended project structure.
std::filesystem::path texturePath(path);

private RigidBody2DComponent m_RigidBody;

public float Speed = 1.0f;
public float Speed;
Copy link

Copilot AI May 3, 2025

Choose a reason for hiding this comment

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

Removing the default initialization for 'Speed' may result in unintended behavior if the value is assumed to be non-zero elsewhere. Consider reintroducing a default value if one is expected.

Suggested change
public float Speed;
public float Speed = 5.0f;

Copilot uses AI. Check for mistakes.
@sheazywi sheazywi moved this to In Progress in StarEngine Project Roadmap May 3, 2025
@sheazywi sheazywi merged commit 3c7f000 into main May 3, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in StarEngine Project Roadmap May 3, 2025
@sheazywi sheazywi deleted the projects branch May 24, 2025 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants