Major cleanup.

Moved to namespace
Cleanup includes
This commit is contained in:
Antoine Pilote
2021-07-11 18:56:44 -04:00
parent f77bef6b28
commit 0c6ed48bbd
174 changed files with 11772 additions and 11296 deletions

View File

@@ -1,32 +1,34 @@
#pragma once
#include "../Scripting/WrenScript.h"
#include <src/Resource/Serializable.h>
#include "src/Scripting/WrenScript.h"
#include "src/Resource/Serializable.h"
class WrenScriptComponent
{
public:
std::string Script;
std::string Class;
Ref<WrenScript> WrenScript;
json Serialize()
namespace Nuake {
class WrenScriptComponent
{
BEGIN_SERIALIZE();
SERIALIZE_VAL(Script);
SERIALIZE_VAL(Class);
END_SERIALIZE();
}
public:
std::string Script;
std::string Class;
bool Deserialize(std::string str)
{
BEGIN_DESERIALIZE();
if (j.contains("Script"))
Script = j["Script"];
if (j.contains("Class"))
Class = j["Class"];
Ref<WrenScript> WrenScript;
return true;
}
};
json Serialize()
{
BEGIN_SERIALIZE();
SERIALIZE_VAL(Script);
SERIALIZE_VAL(Class);
END_SERIALIZE();
}
bool Deserialize(std::string str)
{
BEGIN_DESERIALIZE();
if (j.contains("Script"))
Script = j["Script"];
if (j.contains("Class"))
Class = j["Class"];
return true;
}
};
}