Files
Nuake/NuakeEditor/Source/Editor/ScriptingContext/Modules/EditorModule.cpp
2025-01-30 22:41:17 -05:00

25 lines
557 B
C++

#include "EditorModule.h"
#include "../../Windows/EditorInterface.h"
void SelectEntity(int entityId)
{
if (entityId == -1)
{
Nuake::EditorInterface::Selection = EditorSelection();
return;
}
//Nuake::EditorInterface::Selection = EditorSelection(Nuake::Entity{ (entt::entity)entityId, Nuake::Engine::GetCurrentScene().get() });
}
int GetSelectedEntity()
{
return -10;
}
void EditorNetAPI::RegisterMethods()
{
RegisterMethod("Editor.SetSelectedEntityIcall", &SelectEntity);
RegisterMethod("Editor.GetSelectedEntityIcall", &GetSelectedEntity);
}