Reworked file structure
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user