Major cleanup.
Moved to namespace Cleanup includes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user