-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
277 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/io/binary/serialization/resource-rfls/ResReflection.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include "ResReflection.h" | ||
|
||
ResReflectionHeader::ResReflectionHeader(unsigned int hash) : hash{ hash } {} | ||
|
||
#include <reflection/RflClassGen.h> | ||
|
||
using namespace hh::fnd; | ||
|
||
namespace reflection::serialization::resource_rfls::reflection { | ||
auto resReflectionHeaderMembers = CreateRflClassMembers<void, unsigned int, unsigned int, unsigned int, unsigned int>("magic", "version", "hash", "padding"); | ||
} | ||
|
||
using namespace reflection::serialization::resource_rfls::reflection; | ||
|
||
const RflClass RflClassTraitsImpl<ResReflectionHeader>::rflClass{ "ResReflectionHeader", nullptr, static_cast<uint32_t>(sizeof(ResReflectionHeader)), nullptr, 0, resReflectionHeaderMembers.data(), static_cast<uint32_t>(resReflectionHeaderMembers.size()), nullptr }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#pragma once | ||
#include <reflection/RflClassGenFwd.h> | ||
|
||
struct ResReflectionHeader { | ||
unsigned int magic{ 0x32464552u }; | ||
unsigned int version{ 0x30302E31u }; | ||
unsigned int hash{}; | ||
unsigned int padding{}; | ||
|
||
ResReflectionHeader(unsigned int hash); | ||
}; | ||
|
||
template<> struct hh::fnd::RflClassTraits<ResReflectionHeader> : RflClassTraitsImpl<ResReflectionHeader> {}; |
Oops, something went wrong.