Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Libraries/ResourceLib/Src/Generated/HM3/ZHMPropertyData.cpp

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Libraries/ResourceLib/Src/Generated/KNT/ZHMEnums.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6722,6 +6722,7 @@ void ZHMEnums::RegisterEnums()
{ 47, "Skill_DoorKick" },
{ 48, "Skill_DoorRush" },
{ 49, "TakedownAmmoReward" },
{ 50, "Skill_PickupAmmo" },
};
(*g_EnumSizes)["Gameplay.EPlayerGameplaySystem"] = 4;

Expand Down Expand Up @@ -10081,6 +10082,7 @@ void ZHMEnums::RegisterEnums()
{ 2330, "UI_OPTION_DISPLAY_STEREO_STRENGTH" },
{ 2400, "UI_OPTION_GRAPHICS_FSR_RESOLUTION" },
{ 2401, "UI_OPTION_GRAPHICS_FSR_IMAGE_SHARPEN" },
{ 2402, "UI_OPTION_GRAPHICS_FSR_FRAME_GEN" },
{ 2410, "UI_OPTION_GRAPHICS_DLSS_RESOLUTION" },
{ 2411, "UI_OPTION_GRAPHICS_DLSS_RAY_RECONSTRUCTION" },
{ 2412, "UI_OPTION_GRAPHICS_DLSS_FRAME_GEN" },
Expand Down
73 changes: 73 additions & 0 deletions Libraries/ResourceLib/Src/Generated/KNT/ZHMGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10623,6 +10623,10 @@ void JSONTemplate::SDlssSupportData::WriteSimpleJson(void* p_Object, std::ostrea
p_Stream << simdjson::as_json_string(s_Object->IsFrameGenDynamicAvailable);
p_Stream << ",";

p_Stream << simdjson::as_json_string("IsFrameGenVSyncSupportAvailable") << ":";
p_Stream << simdjson::as_json_string(s_Object->IsFrameGenVSyncSupportAvailable);
p_Stream << ",";

p_Stream << simdjson::as_json_string("MaxFrameGenCount") << ":";
p_Stream << simdjson::as_json_string(s_Object->MaxFrameGenCount);

Expand All @@ -10639,6 +10643,8 @@ void JSONTemplate::SDlssSupportData::FromSimpleJson(simdjson::ondemand::value p_

s_Object->IsFrameGenDynamicAvailable = simdjson::from_json_bool(p_Document["IsFrameGenDynamicAvailable"]);

s_Object->IsFrameGenVSyncSupportAvailable = simdjson::from_json_bool(p_Document["IsFrameGenVSyncSupportAvailable"]);

s_Object->MaxFrameGenCount = simdjson::from_json_int32(p_Document["MaxFrameGenCount"]);

}
Expand All @@ -10665,6 +10671,7 @@ bool JSONTemplate::SDlssSupportData::operator==(const JSONTemplate::SDlssSupport
if (IsAvailable != p_Other.IsAvailable) return false;
if (IsFrameGenAvailable != p_Other.IsFrameGenAvailable) return false;
if (IsFrameGenDynamicAvailable != p_Other.IsFrameGenDynamicAvailable) return false;
if (IsFrameGenVSyncSupportAvailable != p_Other.IsFrameGenVSyncSupportAvailable) return false;
if (MaxFrameGenCount != p_Other.MaxFrameGenCount) return false;

return true;
Expand Down Expand Up @@ -10752,6 +10759,72 @@ void JSONTemplate::SEditTextDialogRegExpValidator::Destroy(void* p_Object)
s_Object->~SEditTextDialogRegExpValidator();
}

ZHMTypeInfo JSONTemplate::SFSRSupportData::TypeInfo = ZHMTypeInfo("JSONTemplate.SFSRSupportData", sizeof(JSONTemplate::SFSRSupportData), alignof(JSONTemplate::SFSRSupportData), JSONTemplate::SFSRSupportData::WriteSimpleJson, JSONTemplate::SFSRSupportData::FromSimpleJson, JSONTemplate::SFSRSupportData::Serialize, JSONTemplate::SFSRSupportData::Equals, JSONTemplate::SFSRSupportData::Destroy);

void JSONTemplate::SFSRSupportData::WriteSimpleJson(void* p_Object, std::ostream& p_Stream)
{
auto* s_Object = reinterpret_cast<JSONTemplate::SFSRSupportData*>(p_Object);

p_Stream << "{";

p_Stream << simdjson::as_json_string("IsAvailable") << ":";
p_Stream << simdjson::as_json_string(s_Object->IsAvailable);
p_Stream << ",";

p_Stream << simdjson::as_json_string("IsAPIUpscalingAvailable") << ":";
p_Stream << simdjson::as_json_string(s_Object->IsAPIUpscalingAvailable);
p_Stream << ",";

p_Stream << simdjson::as_json_string("IsAPIFrameGenAvailable") << ":";
p_Stream << simdjson::as_json_string(s_Object->IsAPIFrameGenAvailable);

p_Stream << "}";
}

void JSONTemplate::SFSRSupportData::FromSimpleJson(simdjson::ondemand::value p_Document, void* p_Target)
{
auto s_Object = reinterpret_cast<JSONTemplate::SFSRSupportData*>(p_Target);

s_Object->IsAvailable = simdjson::from_json_bool(p_Document["IsAvailable"]);

s_Object->IsAPIUpscalingAvailable = simdjson::from_json_bool(p_Document["IsAPIUpscalingAvailable"]);

s_Object->IsAPIFrameGenAvailable = simdjson::from_json_bool(p_Document["IsAPIFrameGenAvailable"]);

}

void JSONTemplate::SFSRSupportData::Serialize(void* p_Object, ZHMSerializer& p_Serializer, zhmptr_t p_OwnOffset)
{
auto* s_Object = reinterpret_cast<JSONTemplate::SFSRSupportData*>(p_Object);

}

bool JSONTemplate::SFSRSupportData::Equals(void* p_Left, void* p_Right)
{
auto* s_Left = reinterpret_cast<JSONTemplate::SFSRSupportData*>(p_Left);
auto* s_Right = reinterpret_cast<JSONTemplate::SFSRSupportData*>(p_Right);

return *s_Left == *s_Right;
}

bool JSONTemplate::SFSRSupportData::operator==(const JSONTemplate::SFSRSupportData& p_Other) const
{
if constexpr (!ZHMTypeSupportsEquality_v<JSONTemplate::SFSRSupportData>)
return false;

if (IsAvailable != p_Other.IsAvailable) return false;
if (IsAPIUpscalingAvailable != p_Other.IsAPIUpscalingAvailable) return false;
if (IsAPIFrameGenAvailable != p_Other.IsAPIFrameGenAvailable) return false;

return true;
}

void JSONTemplate::SFSRSupportData::Destroy(void* p_Object)
{
auto* s_Object = reinterpret_cast<JSONTemplate::SFSRSupportData*>(p_Object);
s_Object->~SFSRSupportData();
}

ZHMTypeInfo JSONTemplate::SFirearmCategoryData::TypeInfo = ZHMTypeInfo("JSONTemplate.SFirearmCategoryData", sizeof(JSONTemplate::SFirearmCategoryData), alignof(JSONTemplate::SFirearmCategoryData), JSONTemplate::SFirearmCategoryData::WriteSimpleJson, JSONTemplate::SFirearmCategoryData::FromSimpleJson, JSONTemplate::SFirearmCategoryData::Serialize, JSONTemplate::SFirearmCategoryData::Equals, JSONTemplate::SFirearmCategoryData::Destroy);

void JSONTemplate::SFirearmCategoryData::WriteSimpleJson(void* p_Object, std::ostream& p_Stream)
Expand Down
28 changes: 28 additions & 0 deletions Libraries/ResourceLib/Src/Generated/KNT/ZHMGen.h
Original file line number Diff line number Diff line change
Expand Up @@ -8342,6 +8342,7 @@ namespace Gameplay {
Skill_DoorKick = 47,
Skill_DoorRush = 48,
TakedownAmmoReward = 49,
Skill_PickupAmmo = 50,
};

// Size: 0x1
Expand Down Expand Up @@ -10246,6 +10247,7 @@ enum class _EUIOptionKey : int32_t
UI_OPTION_DISPLAY_STEREO_STRENGTH = 2330,
UI_OPTION_GRAPHICS_FSR_RESOLUTION = 2400,
UI_OPTION_GRAPHICS_FSR_IMAGE_SHARPEN = 2401,
UI_OPTION_GRAPHICS_FSR_FRAME_GEN = 2402,
UI_OPTION_GRAPHICS_DLSS_RESOLUTION = 2410,
UI_OPTION_GRAPHICS_DLSS_RAY_RECONSTRUCTION = 2411,
UI_OPTION_GRAPHICS_DLSS_FRAME_GEN = 2412,
Expand Down Expand Up @@ -12486,11 +12488,13 @@ namespace JSONTemplate {
bool IsAvailable; // 0x0
bool IsFrameGenAvailable; // 0x1
bool IsFrameGenDynamicAvailable; // 0x2
bool IsFrameGenVSyncSupportAvailable; // 0x3
int32 MaxFrameGenCount; // 0x4
};
ZHM_OFFSET_CHECK(SDlssSupportData, IsAvailable, 0x0);
ZHM_OFFSET_CHECK(SDlssSupportData, IsFrameGenAvailable, 0x1);
ZHM_OFFSET_CHECK(SDlssSupportData, IsFrameGenDynamicAvailable, 0x2);
ZHM_OFFSET_CHECK(SDlssSupportData, IsFrameGenVSyncSupportAvailable, 0x3);
ZHM_OFFSET_CHECK(SDlssSupportData, MaxFrameGenCount, 0x4);
static_assert(sizeof(SDlssSupportData) == 0x8, "Wrong size for SDlssSupportData");
static_assert(alignof(SDlssSupportData) == 0x4, "Wrong alignment for SDlssSupportData");
Expand Down Expand Up @@ -12521,6 +12525,30 @@ namespace JSONTemplate {
static_assert(sizeof(SEditTextDialogRegExpValidator) == 0x38, "Wrong size for SEditTextDialogRegExpValidator");
static_assert(alignof(SEditTextDialogRegExpValidator) == 0x8, "Wrong alignment for SEditTextDialogRegExpValidator");

// Size: 0x3
class alignas(1) SFSRSupportData
{
public:
static ZHMTypeInfo TypeInfo;
static void WriteSimpleJson(void* p_Object, std::ostream& p_Stream);
static void FromSimpleJson(simdjson::ondemand::value p_Document, void* p_Target);
static void Serialize(void* p_Object, ZHMSerializer& p_Serializer, zhmptr_t p_OwnOffset);
static bool Equals(void* p_Left, void* p_Right);
static void Destroy(void* p_Object);

bool operator==(const SFSRSupportData& p_Other) const;
bool operator!=(const SFSRSupportData& p_Other) const { return !(*this == p_Other); }

bool IsAvailable; // 0x0
bool IsAPIUpscalingAvailable; // 0x1
bool IsAPIFrameGenAvailable; // 0x2
};
ZHM_OFFSET_CHECK(SFSRSupportData, IsAvailable, 0x0);
ZHM_OFFSET_CHECK(SFSRSupportData, IsAPIUpscalingAvailable, 0x1);
ZHM_OFFSET_CHECK(SFSRSupportData, IsAPIFrameGenAvailable, 0x2);
static_assert(sizeof(SFSRSupportData) == 0x3, "Wrong size for SFSRSupportData");
static_assert(alignof(SFSRSupportData) == 0x1, "Wrong alignment for SFSRSupportData");

// Size: 0x40
class alignas(8) SFirearmCategoryData
{
Expand Down
Loading
Loading