Bigfoot / Sonarqube (game) (push) Skipped
Bigfoot / Sonarqube (toolmode) (push) Skipped
Bigfoot / Build & Test Debug with ./ConanProfiles/host/clang (Unity Build: OFF, Variant: game) (push) Failing after 12s
Bigfoot / Build & Test Debug with ./ConanProfiles/host/clang (Unity Build: OFF, Variant: toolmode) (push) Failing after 11s
Bigfoot / Build & Test Debug with ./ConanProfiles/host/clang (Unity Build: ON, Variant: game) (push) Failing after 10s
Bigfoot / Build & Test Debug with ./ConanProfiles/host/clang (Unity Build: ON, Variant: toolmode) (push) Failing after 9s
Bigfoot / Build & Test Debug with ./ConanProfiles/host/clang_asan (Unity Build: OFF, Variant: game) (push) Failing after 10s
Bigfoot / Build & Test Debug with ./ConanProfiles/host/clang_asan (Unity Build: OFF, Variant: toolmode) (push) Failing after 10s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/host/clang_asan (Unity Build: OFF, Variant: game) (push) Failing after 15s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/host/clang_asan (Unity Build: ON, Variant: game) (push) Failing after 9s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/host/clang_asan (Unity Build: ON, Variant: toolmode) (push) Failing after 10s
Bigfoot / Build & Test Release with ./ConanProfiles/host/clang (Unity Build: OFF, Variant: game) (push) Failing after 11s
Bigfoot / Build & Test Release with ./ConanProfiles/host/clang (Unity Build: OFF, Variant: toolmode) (push) Failing after 10s
Bigfoot / Build & Test Release with ./ConanProfiles/host/clang (Unity Build: ON, Variant: game) (push) Failing after 9s
Bigfoot / Build & Test Release with ./ConanProfiles/host/clang (Unity Build: ON, Variant: toolmode) (push) Failing after 10s
Bigfoot / Build & Test Release with ./ConanProfiles/host/clang_asan (Unity Build: OFF, Variant: game) (push) Failing after 11s
Bigfoot / Build & Test Debug with ./ConanProfiles/host/clang_asan (Unity Build: ON, Variant: game) (push) Failing after 10s
Bigfoot / Build & Test Debug with ./ConanProfiles/host/clang_asan (Unity Build: ON, Variant: toolmode) (push) Failing after 10s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/host/clang (Unity Build: OFF, Variant: game) (push) Failing after 10s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/host/clang (Unity Build: OFF, Variant: toolmode) (push) Failing after 9s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/host/clang (Unity Build: ON, Variant: game) (push) Failing after 10s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/host/clang (Unity Build: ON, Variant: toolmode) (push) Failing after 9s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/host/clang_asan (Unity Build: OFF, Variant: toolmode) (push) Failing after 11s
Bigfoot / Build & Test Release with ./ConanProfiles/host/clang_asan (Unity Build: OFF, Variant: toolmode) (push) Failing after 12s
Bigfoot / Build & Test Release with ./ConanProfiles/host/clang_asan (Unity Build: ON, Variant: game) (push) Failing after 10s
Bigfoot / Build & Test Release with ./ConanProfiles/host/clang_asan (Unity Build: ON, Variant: toolmode) (push) Failing after 9s
Bigfoot / Clang Format Checks (push) Failing after 12s
64 lines
2.4 KiB
C++
64 lines
2.4 KiB
C++
/*********************************************************************
|
|
* \file AssetBase.cpp
|
|
*
|
|
* \author Romain BOULLARD
|
|
* \date April 2026
|
|
*********************************************************************/
|
|
#include <Engine/Asset/AssetBase.hpp>
|
|
|
|
#include <Engine/Asset/Reference_generated.hpp>
|
|
|
|
namespace Bigfoot
|
|
{
|
|
void AssetBase::HardReferenceVisitor::Field([[maybe_unused]] size_t p_fieldIndex,
|
|
[[maybe_unused]] size_t p_setIndex,
|
|
const flatbuffers::ElementaryType p_type,
|
|
const bool p_isVector,
|
|
const flatbuffers::TypeTable* p_typeTable,
|
|
[[maybe_unused]] const char* p_name,
|
|
const std::uint8_t* p_val)
|
|
{
|
|
if (!p_isVector)
|
|
{
|
|
Visit(p_type, p_typeTable, p_val);
|
|
}
|
|
}
|
|
|
|
/****************************************************************************************/
|
|
|
|
void AssetBase::HardReferenceVisitor::Element([[maybe_unused]] size_t p_index,
|
|
const flatbuffers::ElementaryType p_type,
|
|
const flatbuffers::TypeTable* p_typeTable,
|
|
const std::uint8_t* p_val)
|
|
{
|
|
Visit(p_type, p_typeTable, p_val);
|
|
}
|
|
|
|
/****************************************************************************************/
|
|
|
|
eastl::vector<UUID> AssetBase::HardReferenceVisitor::GetUUIDs() const
|
|
{
|
|
eastl::vector<UUID> uuids;
|
|
uuids.reserve(m_uuids.size());
|
|
std::copy(m_uuids.begin(), m_uuids.end(), eastl::back_inserter(uuids));
|
|
return uuids;
|
|
}
|
|
|
|
/****************************************************************************************/
|
|
|
|
void AssetBase::HardReferenceVisitor::Visit(const flatbuffers::ElementaryType p_type,
|
|
const flatbuffers::TypeTable* p_typeTable,
|
|
const std::uint8_t* p_val)
|
|
{
|
|
if (p_val == nullptr || p_type != flatbuffers::ET_SEQUENCE ||
|
|
p_typeTable != ::Flat::Bigfoot::HardReference::MiniReflectTypeTable())
|
|
{
|
|
return;
|
|
}
|
|
|
|
const ::Flat::Bigfoot::HardReference* hardReference = reinterpret_cast<const ::Flat::Bigfoot::HardReference*>(
|
|
p_val);
|
|
m_uuids.emplace(flatbuffers::UnPack(hardReference->uuid()));
|
|
}
|
|
} // namespace Bigfoot
|