mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
25 lines
557 B
C++
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);
|
|
}
|