Can now rename entities pressing f2 or double clicking and selecting an entity should unfold the tree

This commit is contained in:
Antoine Pilote
2024-08-16 17:59:06 -04:00
parent 9c2a6f9019
commit 27488ae5bf
6 changed files with 89 additions and 4 deletions

View File

@@ -16,6 +16,7 @@
#include <Coral/Array.hpp>
#include <Coral/Attribute.hpp>
#include <random>
#include <regex>
void ExceptionCallback(std::string_view InMessage)

View File

@@ -44,6 +44,13 @@ namespace Nuake {
std::vector<ExposedVar> exposedVars;
};
struct CompilationError
{
std::string file;
int line;
std::string message;
};
class ScriptingEngineNet
{
private:
@@ -75,6 +82,8 @@ namespace Nuake {
ScriptingEngineNet();
~ScriptingEngineNet();
std::vector<CompilationError> ExtractErrors(const std::string& input);
public:
static ScriptingEngineNet& Get();
@@ -85,7 +94,7 @@ namespace Nuake {
std::vector<ExposedVar> GetExposedVarForTypes(Entity entity);
void BuildProjectAssembly(Ref<Project> project);
std::vector<CompilationError> BuildProjectAssembly(Ref<Project> project);
void LoadProjectAssembly(Ref<Project> project);
void RegisterEntityScript(Entity& entity);