refactor(editor): isolate engine service boundaries
This commit is contained in:
28
editor/app/Features/Game/GameViewportFeature.cpp
Normal file
28
editor/app/Features/Game/GameViewportFeature.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#include "Game/GameViewportFeature.h"
|
||||
|
||||
namespace XCEngine::UI::Editor::App {
|
||||
|
||||
void GameViewportFeature::Shutdown() {
|
||||
m_controller.SetCommandFocusService(nullptr);
|
||||
}
|
||||
|
||||
void GameViewportFeature::ResetInteractionState() {
|
||||
m_controller.ResetInteractionState();
|
||||
}
|
||||
|
||||
void GameViewportFeature::SetCommandFocusService(
|
||||
EditorCommandFocusService* commandFocusService) {
|
||||
m_controller.SetCommandFocusService(commandFocusService);
|
||||
}
|
||||
|
||||
void GameViewportFeature::Update(
|
||||
const UIEditorWorkspaceComposeState& composeState,
|
||||
const UIEditorWorkspaceComposeFrame& composeFrame) {
|
||||
m_controller.Update(composeState, composeFrame);
|
||||
}
|
||||
|
||||
void GameViewportFeature::Append(::XCEngine::UI::UIDrawList& drawList) const {
|
||||
m_controller.Append(drawList);
|
||||
}
|
||||
|
||||
} // namespace XCEngine::UI::Editor::App
|
||||
Reference in New Issue
Block a user