Added relative path entity fetching

This commit is contained in:
Antoine Pilote
2024-04-20 12:50:16 -04:00
parent 512cb3336c
commit efbf45c5a8
4 changed files with 83 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ namespace Nuake {
virtual const std::string GetModuleName() const = 0;
virtual void RegisterMethods() = 0;
MethodMap GetMethods() const { return m_Methods; }
const MethodMap& GetMethods() const { return m_Methods; }
protected:
void RegisterMethod(const std::string& name, void* methodPtr)

View File

@@ -152,8 +152,6 @@ namespace Nuake {
int EntityGetEntity(int handle, Coral::String input)
{
std::string path = input;
Ref<Scene> scene = Engine::GetCurrentScene();
if (String::BeginsWith(input, "/"))
{