From 11f0106deab17b6900368049f59e9d03fc6e875f Mon Sep 17 00:00:00 2001 From: Romain BOULLARD Date: Sun, 10 May 2026 23:55:11 +0200 Subject: [PATCH] Put back reflection info --- .../Engine/Asset/AssetTypeID_generated.hpp | 16 +++++++ .../Include/Engine/Asset/Asset_generated.hpp | 43 +++++++++++++++++++ .../Engine/Asset/Reference_generated.hpp | 38 ++++++++++++++++ .../Include/Engine/EngineAssertHandler.hpp | 4 +- .../Include/System/Log/Log_generated.hpp | 31 +++++++++++++ .../Include/System/SystemAssertHandler.hpp | 4 +- .../Include/System/Time/Time_generated.hpp | 16 +++++++ .../Include/System/UUID/UUID_generated.hpp | 17 ++++++++ .../Sources/Utils/Include/Utils/Assert.hpp | 6 +-- .../EngineTests/Asset/AssetA_generated.hpp | 16 +++++++ .../EngineTests/Asset/AssetB_generated.hpp | 20 +++++++++ .../EngineTests/Asset/AssetC_generated.hpp | 41 ++++++++++++++++++ CMake/Utils.cmake | 2 + 13 files changed, 245 insertions(+), 9 deletions(-) diff --git a/Bigfoot/Sources/Engine/Include/Engine/Asset/AssetTypeID_generated.hpp b/Bigfoot/Sources/Engine/Include/Engine/Asset/AssetTypeID_generated.hpp index 10b295c..152b30a 100644 --- a/Bigfoot/Sources/Engine/Include/Engine/Asset/AssetTypeID_generated.hpp +++ b/Bigfoot/Sources/Engine/Include/Engine/Asset/AssetTypeID_generated.hpp @@ -24,12 +24,17 @@ namespace Bigfoot { struct AssetTypeID; +inline const ::flatbuffers::TypeTable *AssetTypeIDTypeTable(); + FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(8) AssetTypeID FLATBUFFERS_FINAL_CLASS { private: uint64_t value_; public: struct Traits; + static const ::flatbuffers::TypeTable *MiniReflectTypeTable() { + return AssetTypeIDTypeTable(); + } static FLATBUFFERS_CONSTEXPR_CPP11 const char *GetFullyQualifiedName() { return "Flat.Bigfoot.AssetTypeID"; } @@ -49,6 +54,17 @@ struct AssetTypeID::Traits { using type = AssetTypeID; }; +inline const ::flatbuffers::TypeTable *AssetTypeIDTypeTable() { + static const ::flatbuffers::TypeCode type_codes[] = { + { ::flatbuffers::ET_ULONG, 0, -1 } + }; + static const int64_t values[] = { 0, 8 }; + static const ::flatbuffers::TypeTable tt = { + ::flatbuffers::ST_STRUCT, 1, type_codes, nullptr, nullptr, values, nullptr + }; + return &tt; +} + } // namespace Bigfoot } // namespace Flat diff --git a/Bigfoot/Sources/Engine/Include/Engine/Asset/Asset_generated.hpp b/Bigfoot/Sources/Engine/Include/Engine/Asset/Asset_generated.hpp index 019936a..5870aea 100644 --- a/Bigfoot/Sources/Engine/Include/Engine/Asset/Asset_generated.hpp +++ b/Bigfoot/Sources/Engine/Include/Engine/Asset/Asset_generated.hpp @@ -33,6 +33,10 @@ struct Asset; struct AssetBuilder; struct AssetT; +inline const ::flatbuffers::TypeTable *AssetHeaderTypeTable(); + +inline const ::flatbuffers::TypeTable *AssetTypeTable(); + struct AssetHeaderT : public ::flatbuffers::NativeTable { typedef AssetHeader TableType; static FLATBUFFERS_CONSTEXPR_CPP11 const char *GetFullyQualifiedName() { @@ -50,6 +54,9 @@ struct AssetHeader FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table { typedef AssetHeaderT NativeTableType; typedef AssetHeaderBuilder Builder; struct Traits; + static const ::flatbuffers::TypeTable *MiniReflectTypeTable() { + return AssetHeaderTypeTable(); + } static FLATBUFFERS_CONSTEXPR_CPP11 const char *GetFullyQualifiedName() { return "Flat.Bigfoot.AssetHeader"; } @@ -178,6 +185,9 @@ struct Asset FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table { typedef AssetT NativeTableType; typedef AssetBuilder Builder; struct Traits; + static const ::flatbuffers::TypeTable *MiniReflectTypeTable() { + return AssetTypeTable(); + } static FLATBUFFERS_CONSTEXPR_CPP11 const char *GetFullyQualifiedName() { return "Flat.Bigfoot.Asset"; } @@ -326,6 +336,39 @@ inline ::flatbuffers::Offset Asset::Pack(::flatbuffers::FlatBufferBuilder _inner_asset); } +inline const ::flatbuffers::TypeTable *AssetHeaderTypeTable() { + static const ::flatbuffers::TypeCode type_codes[] = { + { ::flatbuffers::ET_SEQUENCE, 0, 0 }, + { ::flatbuffers::ET_STRING, 0, -1 }, + { ::flatbuffers::ET_SEQUENCE, 0, 1 }, + { ::flatbuffers::ET_STRING, 0, -1 }, + { ::flatbuffers::ET_UINT, 0, -1 }, + { ::flatbuffers::ET_SEQUENCE, 1, 0 } + }; + static const ::flatbuffers::TypeFunction type_refs[] = { + Flat::Bigfoot::UUIDTypeTable, + Flat::Bigfoot::AssetTypeIDTypeTable + }; + static const ::flatbuffers::TypeTable tt = { + ::flatbuffers::ST_TABLE, 6, type_codes, type_refs, nullptr, nullptr, nullptr + }; + return &tt; +} + +inline const ::flatbuffers::TypeTable *AssetTypeTable() { + static const ::flatbuffers::TypeCode type_codes[] = { + { ::flatbuffers::ET_SEQUENCE, 0, 0 }, + { ::flatbuffers::ET_UCHAR, 1, -1 } + }; + static const ::flatbuffers::TypeFunction type_refs[] = { + Flat::Bigfoot::AssetHeaderTypeTable + }; + static const ::flatbuffers::TypeTable tt = { + ::flatbuffers::ST_TABLE, 2, type_codes, type_refs, nullptr, nullptr, nullptr + }; + return &tt; +} + inline const Flat::Bigfoot::Asset *GetAsset(const void *buf) { return ::flatbuffers::GetRoot(buf); } diff --git a/Bigfoot/Sources/Engine/Include/Engine/Asset/Reference_generated.hpp b/Bigfoot/Sources/Engine/Include/Engine/Asset/Reference_generated.hpp index 6052e2f..d210a01 100644 --- a/Bigfoot/Sources/Engine/Include/Engine/Asset/Reference_generated.hpp +++ b/Bigfoot/Sources/Engine/Include/Engine/Asset/Reference_generated.hpp @@ -29,12 +29,19 @@ struct HardRef; struct SoftRef; +inline const ::flatbuffers::TypeTable *HardRefTypeTable(); + +inline const ::flatbuffers::TypeTable *SoftRefTypeTable(); + FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(1) HardRef FLATBUFFERS_FINAL_CLASS { private: Flat::Bigfoot::UUID uuid_; public: struct Traits; + static const ::flatbuffers::TypeTable *MiniReflectTypeTable() { + return HardRefTypeTable(); + } static FLATBUFFERS_CONSTEXPR_CPP11 const char *GetFullyQualifiedName() { return "Flat.Bigfoot.HardRef"; } @@ -60,6 +67,9 @@ FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(1) SoftRef FLATBUFFERS_FINAL_CLASS { public: struct Traits; + static const ::flatbuffers::TypeTable *MiniReflectTypeTable() { + return SoftRefTypeTable(); + } static FLATBUFFERS_CONSTEXPR_CPP11 const char *GetFullyQualifiedName() { return "Flat.Bigfoot.SoftRef"; } @@ -79,6 +89,34 @@ struct SoftRef::Traits { using type = SoftRef; }; +inline const ::flatbuffers::TypeTable *HardRefTypeTable() { + static const ::flatbuffers::TypeCode type_codes[] = { + { ::flatbuffers::ET_SEQUENCE, 0, 0 } + }; + static const ::flatbuffers::TypeFunction type_refs[] = { + Flat::Bigfoot::UUIDTypeTable + }; + static const int64_t values[] = { 0, 16 }; + static const ::flatbuffers::TypeTable tt = { + ::flatbuffers::ST_STRUCT, 1, type_codes, type_refs, nullptr, values, nullptr + }; + return &tt; +} + +inline const ::flatbuffers::TypeTable *SoftRefTypeTable() { + static const ::flatbuffers::TypeCode type_codes[] = { + { ::flatbuffers::ET_SEQUENCE, 0, 0 } + }; + static const ::flatbuffers::TypeFunction type_refs[] = { + Flat::Bigfoot::UUIDTypeTable + }; + static const int64_t values[] = { 0, 16 }; + static const ::flatbuffers::TypeTable tt = { + ::flatbuffers::ST_STRUCT, 1, type_codes, type_refs, nullptr, values, nullptr + }; + return &tt; +} + } // namespace Bigfoot } // namespace Flat diff --git a/Bigfoot/Sources/Engine/Include/Engine/EngineAssertHandler.hpp b/Bigfoot/Sources/Engine/Include/Engine/EngineAssertHandler.hpp index fecdd3d..d880775 100644 --- a/Bigfoot/Sources/Engine/Include/Engine/EngineAssertHandler.hpp +++ b/Bigfoot/Sources/Engine/Include/Engine/EngineAssertHandler.hpp @@ -37,9 +37,7 @@ class EngineAssertHandler * \param p_args Arguments for the format string. */ template - static void Handle(const std::source_location& p_location, - std::format_string p_format, - ARGS&&... p_args) + static void Handle(const std::source_location& p_location, std::format_string p_format, ARGS&&... p_args) { BIGFOOT_LOG_FATAL(ENGINE_LOGGER, "Assert: {} (File:{}, Line:{}, Function:{}\n", diff --git a/Bigfoot/Sources/System/Include/System/Log/Log_generated.hpp b/Bigfoot/Sources/System/Include/System/Log/Log_generated.hpp index 6831592..6606903 100644 --- a/Bigfoot/Sources/System/Include/System/Log/Log_generated.hpp +++ b/Bigfoot/Sources/System/Include/System/Log/Log_generated.hpp @@ -89,6 +89,37 @@ inline const char *EnumNameLogLevel(LogLevel e) { return EnumNamesLogLevel()[index]; } +inline const ::flatbuffers::TypeTable *LogSinkTypeTypeTable() { + static const ::flatbuffers::TypeCode type_codes[] = { + { ::flatbuffers::ET_CHAR, 0, 0 } + }; + static const ::flatbuffers::TypeFunction type_refs[] = { + Bigfoot::Flat::LogSinkTypeTypeTable + }; + static const ::flatbuffers::TypeTable tt = { + ::flatbuffers::ST_ENUM, 1, type_codes, type_refs, nullptr, nullptr, nullptr + }; + return &tt; +} + +inline const ::flatbuffers::TypeTable *LogLevelTypeTable() { + static const ::flatbuffers::TypeCode type_codes[] = { + { ::flatbuffers::ET_CHAR, 0, 0 }, + { ::flatbuffers::ET_CHAR, 0, 0 }, + { ::flatbuffers::ET_CHAR, 0, 0 }, + { ::flatbuffers::ET_CHAR, 0, 0 }, + { ::flatbuffers::ET_CHAR, 0, 0 }, + { ::flatbuffers::ET_CHAR, 0, 0 } + }; + static const ::flatbuffers::TypeFunction type_refs[] = { + Bigfoot::Flat::LogLevelTypeTable + }; + static const ::flatbuffers::TypeTable tt = { + ::flatbuffers::ST_ENUM, 6, type_codes, type_refs, nullptr, nullptr, nullptr + }; + return &tt; +} + } // namespace Flat } // namespace Bigfoot diff --git a/Bigfoot/Sources/System/Include/System/SystemAssertHandler.hpp b/Bigfoot/Sources/System/Include/System/SystemAssertHandler.hpp index 9d0c56d..24e66bd 100644 --- a/Bigfoot/Sources/System/Include/System/SystemAssertHandler.hpp +++ b/Bigfoot/Sources/System/Include/System/SystemAssertHandler.hpp @@ -37,9 +37,7 @@ class SystemAssertHandler * \param p_args Arguments for the format string. */ template - static void Handle(const std::source_location& p_location, - std::format_string p_format, - ARGS&&... p_args) + static void Handle(const std::source_location& p_location, std::format_string p_format, ARGS&&... p_args) { BIGFOOT_LOG_FATAL(SYSTEM_LOGGER, "Assert: {} (File:{}, Line:{}, Function:{}\n", diff --git a/Bigfoot/Sources/System/Include/System/Time/Time_generated.hpp b/Bigfoot/Sources/System/Include/System/Time/Time_generated.hpp index ccb1421..b764ac1 100644 --- a/Bigfoot/Sources/System/Include/System/Time/Time_generated.hpp +++ b/Bigfoot/Sources/System/Include/System/Time/Time_generated.hpp @@ -24,12 +24,17 @@ namespace Bigfoot { struct Time; +inline const ::flatbuffers::TypeTable *TimeTypeTable(); + FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(8) Time FLATBUFFERS_FINAL_CLASS { private: uint64_t epoch_; public: struct Traits; + static const ::flatbuffers::TypeTable *MiniReflectTypeTable() { + return TimeTypeTable(); + } static FLATBUFFERS_CONSTEXPR_CPP11 const char *GetFullyQualifiedName() { return "Flat.Bigfoot.Time"; } @@ -49,6 +54,17 @@ struct Time::Traits { using type = Time; }; +inline const ::flatbuffers::TypeTable *TimeTypeTable() { + static const ::flatbuffers::TypeCode type_codes[] = { + { ::flatbuffers::ET_ULONG, 0, -1 } + }; + static const int64_t values[] = { 0, 8 }; + static const ::flatbuffers::TypeTable tt = { + ::flatbuffers::ST_STRUCT, 1, type_codes, nullptr, nullptr, values, nullptr + }; + return &tt; +} + } // namespace Bigfoot } // namespace Flat diff --git a/Bigfoot/Sources/System/Include/System/UUID/UUID_generated.hpp b/Bigfoot/Sources/System/Include/System/UUID/UUID_generated.hpp index 02f7cd7..6faf6fa 100644 --- a/Bigfoot/Sources/System/Include/System/UUID/UUID_generated.hpp +++ b/Bigfoot/Sources/System/Include/System/UUID/UUID_generated.hpp @@ -24,12 +24,17 @@ namespace Bigfoot { struct UUID; +inline const ::flatbuffers::TypeTable *UUIDTypeTable(); + FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(1) UUID FLATBUFFERS_FINAL_CLASS { private: uint8_t bytes_[16]; public: struct Traits; + static const ::flatbuffers::TypeTable *MiniReflectTypeTable() { + return UUIDTypeTable(); + } static FLATBUFFERS_CONSTEXPR_CPP11 const char *GetFullyQualifiedName() { return "Flat.Bigfoot.UUID"; } @@ -49,6 +54,18 @@ struct UUID::Traits { using type = UUID; }; +inline const ::flatbuffers::TypeTable *UUIDTypeTable() { + static const ::flatbuffers::TypeCode type_codes[] = { + { ::flatbuffers::ET_UCHAR, 1, -1 } + }; + static const int16_t array_sizes[] = { 16, }; + static const int64_t values[] = { 0, 16 }; + static const ::flatbuffers::TypeTable tt = { + ::flatbuffers::ST_STRUCT, 1, type_codes, nullptr, array_sizes, values, nullptr + }; + return &tt; +} + } // namespace Bigfoot } // namespace Flat diff --git a/Bigfoot/Sources/Utils/Include/Utils/Assert.hpp b/Bigfoot/Sources/Utils/Include/Utils/Assert.hpp index ee2270b..a358228 100644 --- a/Bigfoot/Sources/Utils/Include/Utils/Assert.hpp +++ b/Bigfoot/Sources/Utils/Include/Utils/Assert.hpp @@ -37,7 +37,7 @@ constexpr std::source_location location = std::source_location::current(); \ if (!(p_assert)) [[unlikely]] \ { \ - HANDLER::Handle(location, p_message __VA_OPT__(, ) __VA_ARGS__); \ + HANDLER::Handle(location, p_message __VA_OPT__(, ) __VA_ARGS__); \ BREAK; \ } \ } while (false) @@ -48,7 +48,7 @@ constexpr std::source_location location = std::source_location::current(); \ if (!(p_assert)) [[unlikely]] \ { \ - HANDLER::Handle(location, p_message __VA_OPT__(, ) __VA_ARGS__); \ + HANDLER::Handle(location, p_message __VA_OPT__(, ) __VA_ARGS__); \ BREAK; \ } \ } while (false) @@ -59,7 +59,7 @@ constexpr std::source_location location = std::source_location::current(); \ if (!(p_assert)) [[unlikely]] \ { \ - HANDLER::Handle(location, p_message __VA_OPT__(, ) __VA_ARGS__); \ + HANDLER::Handle(location, p_message __VA_OPT__(, ) __VA_ARGS__); \ if (Bigfoot::Singleton::HasInstance()) \ { \ Bigfoot::Singleton::Instance().Flush(); \ diff --git a/Bigfoot/Tests/Engine/Include/EngineTests/Asset/AssetA_generated.hpp b/Bigfoot/Tests/Engine/Include/EngineTests/Asset/AssetA_generated.hpp index 9fc8539..4d34735 100644 --- a/Bigfoot/Tests/Engine/Include/EngineTests/Asset/AssetA_generated.hpp +++ b/Bigfoot/Tests/Engine/Include/EngineTests/Asset/AssetA_generated.hpp @@ -30,6 +30,8 @@ struct AssetA; struct AssetABuilder; struct AssetAT; +inline const ::flatbuffers::TypeTable *AssetATypeTable(); + struct AssetAT : public ::flatbuffers::NativeTable { typedef AssetA TableType; static FLATBUFFERS_CONSTEXPR_CPP11 const char *GetFullyQualifiedName() { @@ -43,6 +45,9 @@ struct AssetA FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table { typedef AssetAT NativeTableType; typedef AssetABuilder Builder; struct Traits; + static const ::flatbuffers::TypeTable *MiniReflectTypeTable() { + return AssetATypeTable(); + } static FLATBUFFERS_CONSTEXPR_CPP11 const char *GetFullyQualifiedName() { return "Flat.Bigfoot.AssetA"; } @@ -135,6 +140,17 @@ inline ::flatbuffers::Offset AssetA::Pack(::flatbuffers::FlatBufferBuild _mana); } +inline const ::flatbuffers::TypeTable *AssetATypeTable() { + static const ::flatbuffers::TypeCode type_codes[] = { + { ::flatbuffers::ET_UINT, 0, -1 }, + { ::flatbuffers::ET_UINT, 0, -1 } + }; + static const ::flatbuffers::TypeTable tt = { + ::flatbuffers::ST_TABLE, 2, type_codes, nullptr, nullptr, nullptr, nullptr + }; + return &tt; +} + inline const Flat::Bigfoot::AssetA *GetAssetA(const void *buf) { return ::flatbuffers::GetRoot(buf); } diff --git a/Bigfoot/Tests/Engine/Include/EngineTests/Asset/AssetB_generated.hpp b/Bigfoot/Tests/Engine/Include/EngineTests/Asset/AssetB_generated.hpp index 2d40603..9d1b01a 100644 --- a/Bigfoot/Tests/Engine/Include/EngineTests/Asset/AssetB_generated.hpp +++ b/Bigfoot/Tests/Engine/Include/EngineTests/Asset/AssetB_generated.hpp @@ -32,6 +32,8 @@ struct AssetB; struct AssetBBuilder; struct AssetBT; +inline const ::flatbuffers::TypeTable *AssetBTypeTable(); + struct AssetBT : public ::flatbuffers::NativeTable { typedef AssetB TableType; static FLATBUFFERS_CONSTEXPR_CPP11 const char *GetFullyQualifiedName() { @@ -45,6 +47,9 @@ struct AssetB FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table { typedef AssetBT NativeTableType; typedef AssetBBuilder Builder; struct Traits; + static const ::flatbuffers::TypeTable *MiniReflectTypeTable() { + return AssetBTypeTable(); + } static FLATBUFFERS_CONSTEXPR_CPP11 const char *GetFullyQualifiedName() { return "Flat.Bigfoot.AssetB"; } @@ -138,6 +143,21 @@ inline ::flatbuffers::Offset AssetB::Pack(::flatbuffers::FlatBufferBuild _asset_a_refs); } +inline const ::flatbuffers::TypeTable *AssetBTypeTable() { + static const ::flatbuffers::TypeCode type_codes[] = { + { ::flatbuffers::ET_SEQUENCE, 0, 0 }, + { ::flatbuffers::ET_SEQUENCE, 1, 1 } + }; + static const ::flatbuffers::TypeFunction type_refs[] = { + Flat::Bigfoot::HardRefTypeTable, + Flat::Bigfoot::SoftRefTypeTable + }; + static const ::flatbuffers::TypeTable tt = { + ::flatbuffers::ST_TABLE, 2, type_codes, type_refs, nullptr, nullptr, nullptr + }; + return &tt; +} + inline const Flat::Bigfoot::AssetB *GetAssetB(const void *buf) { return ::flatbuffers::GetRoot(buf); } diff --git a/Bigfoot/Tests/Engine/Include/EngineTests/Asset/AssetC_generated.hpp b/Bigfoot/Tests/Engine/Include/EngineTests/Asset/AssetC_generated.hpp index 35adead..294c371 100644 --- a/Bigfoot/Tests/Engine/Include/EngineTests/Asset/AssetC_generated.hpp +++ b/Bigfoot/Tests/Engine/Include/EngineTests/Asset/AssetC_generated.hpp @@ -38,6 +38,10 @@ struct AssetC; struct AssetCBuilder; struct AssetCT; +inline const ::flatbuffers::TypeTable *InnerTableTypeTable(); + +inline const ::flatbuffers::TypeTable *AssetCTypeTable(); + struct InnerTableT : public ::flatbuffers::NativeTable { typedef InnerTable TableType; static FLATBUFFERS_CONSTEXPR_CPP11 const char *GetFullyQualifiedName() { @@ -51,6 +55,9 @@ struct InnerTable FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table { typedef InnerTableT NativeTableType; typedef InnerTableBuilder Builder; struct Traits; + static const ::flatbuffers::TypeTable *MiniReflectTypeTable() { + return InnerTableTypeTable(); + } static FLATBUFFERS_CONSTEXPR_CPP11 const char *GetFullyQualifiedName() { return "Flat.Bigfoot.InnerTable"; } @@ -133,6 +140,9 @@ struct AssetC FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table { typedef AssetCT NativeTableType; typedef AssetCBuilder Builder; struct Traits; + static const ::flatbuffers::TypeTable *MiniReflectTypeTable() { + return AssetCTypeTable(); + } static FLATBUFFERS_CONSTEXPR_CPP11 const char *GetFullyQualifiedName() { return "Flat.Bigfoot.AssetC"; } @@ -283,6 +293,37 @@ inline ::flatbuffers::Offset AssetC::Pack(::flatbuffers::FlatBufferBuild _asset_b_refs); } +inline const ::flatbuffers::TypeTable *InnerTableTypeTable() { + static const ::flatbuffers::TypeCode type_codes[] = { + { ::flatbuffers::ET_SEQUENCE, 0, 0 }, + { ::flatbuffers::ET_SEQUENCE, 1, 0 } + }; + static const ::flatbuffers::TypeFunction type_refs[] = { + Flat::Bigfoot::HardRefTypeTable + }; + static const ::flatbuffers::TypeTable tt = { + ::flatbuffers::ST_TABLE, 2, type_codes, type_refs, nullptr, nullptr, nullptr + }; + return &tt; +} + +inline const ::flatbuffers::TypeTable *AssetCTypeTable() { + static const ::flatbuffers::TypeCode type_codes[] = { + { ::flatbuffers::ET_SEQUENCE, 0, 0 }, + { ::flatbuffers::ET_SEQUENCE, 0, 1 }, + { ::flatbuffers::ET_SEQUENCE, 1, 2 } + }; + static const ::flatbuffers::TypeFunction type_refs[] = { + Flat::Bigfoot::InnerTableTypeTable, + Flat::Bigfoot::HardRefTypeTable, + Flat::Bigfoot::SoftRefTypeTable + }; + static const ::flatbuffers::TypeTable tt = { + ::flatbuffers::ST_TABLE, 3, type_codes, type_refs, nullptr, nullptr, nullptr + }; + return &tt; +} + inline const Flat::Bigfoot::AssetC *GetAssetC(const void *buf) { return ::flatbuffers::GetRoot(buf); } diff --git a/CMake/Utils.cmake b/CMake/Utils.cmake index ac5863f..79ef969 100644 --- a/CMake/Utils.cmake +++ b/CMake/Utils.cmake @@ -79,6 +79,8 @@ function(bigfoot_compile_flatbuffers BigfootDependencies) --keep-prefix --filename-ext "hpp" --cpp-std c++17 + --reflect-names + --reflect-types --gen-name-strings --gen-object-api --cpp-str-flex-ctor