Added relative path entity fetching
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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, "/"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user