mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
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);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
#include "Nuake/Scripting/NetModules/NetAPIModule.h"
|
||||
|
||||
class EditorNetAPI : public Nuake::NetAPIModule
|
||||
{
|
||||
public:
|
||||
virtual const std::string GetModuleName() const override { return "Editor"; }
|
||||
|
||||
virtual void RegisterMethods() override;
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user