Files
Nuake-custom/Nuake/src/Scene/Components/NavMeshVolumeComponent.h
2024-07-24 20:58:48 -04:00

29 lines
425 B
C++

#pragma once
#include "../Entities/Entity.h"
#include "Engine.h"
namespace Nuake
{
struct NavMeshVolumeComponent
{
Vector3 VolumeSize = { 1.0f, 1.0f, 1.0f };
json Serialize()
{
BEGIN_SERIALIZE();
SERIALIZE_VEC3(VolumeSize);
END_SERIALIZE();
}
bool Deserialize(const json& j)
{
if (j.contains("VolumeSize"));
{
DESERIALIZE_VEC3(j["VolumeSize"], VolumeSize);
}
return true;
}
};
}