mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-08 22:08:29 -05:00
34 lines
782 B
C++
34 lines
782 B
C++
#pragma once
|
|
|
|
#include "Json/JsonCommon.h"
|
|
#include <memory>
|
|
#include <optional>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace T6
|
|
{
|
|
class JsonXModelLod
|
|
{
|
|
public:
|
|
std::string file;
|
|
float distance;
|
|
};
|
|
|
|
NLOHMANN_DEFINE_TYPE_EXTENSION(JsonXModelLod, file, distance);
|
|
|
|
class JsonXModel
|
|
{
|
|
public:
|
|
std::vector<JsonXModelLod> lods;
|
|
std::optional<int> collLod;
|
|
std::optional<std::string> physPreset;
|
|
std::optional<std::string> physConstraints;
|
|
unsigned flags;
|
|
JsonVec3 lightingOriginOffset;
|
|
float lightingOriginRange;
|
|
};
|
|
|
|
NLOHMANN_DEFINE_TYPE_EXTENSION(JsonXModel, lods, collLod, physPreset, physConstraints, flags, lightingOriginOffset, lightingOriginRange);
|
|
} // namespace T6
|