LeviLamina
Loading...
Searching...
No Matches
CerealDocumentUpgrader Class Reference

Public Types

enum class  ParseAndUpgradeResult : int { Failure = 0 , SuccessWithChanges = 1 , SuccessWithoutChanges = 2 }
 

Public Member Functions

CerealDocumentUpgraderoperator= (CerealDocumentUpgrader const &)
 
 CerealDocumentUpgrader (CerealDocumentUpgrader const &)
 
MCAPI void clear ()
 
MCAPI::CerealDocumentUpgrader::ParseAndUpgradeResult parseJsonAndUpgrade (::std::string const &json, ::SemVersion &outDocumentVersion, ::rapidjson::GenericDocument< ::rapidjson::UTF8< char >, ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator >, ::rapidjson::CrtAllocator > &document, ::Core::Path const &resourceName, bool allowMissingVersionAsZero, ::std::optional<::SemVersion > const &minVersion, ::std::function< bool(::SemVersion const &)> const &shouldUpgrade) const
 
MCAPI void registerUpgrade (::std::shared_ptr<::CerealSchemaUpgrade > upgrade)
 
MCAPI bool upgradeJson (::std::string &json, ::SemVersion &outDocumentVersion, ::rapidjson::GenericDocument< ::rapidjson::UTF8< char >, ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator >, ::rapidjson::CrtAllocator > &document, ::Core::Path const &resourceName, ::std::optional<::SemVersion > const &minVersion, ::std::function< bool(::SemVersion const &)> const &shouldUpgrade) const
 

Static Public Member Functions

static MCAPI ::std::string getVersion (::rapidjson::GenericDocument< ::rapidjson::UTF8< char >, ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator >, ::rapidjson::CrtAllocator > const &document)
 

Public Attributes

::ll::UntypedStorage< 8, 24 > mUnk34f8f2
 
::ll::UntypedStorage< 8, 24 > mUnkd5595a
 

Member Function Documentation

◆ clear()

MCAPI void CerealDocumentUpgrader::clear ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ parseJsonAndUpgrade()

MCAPI::CerealDocumentUpgrader::ParseAndUpgradeResult CerealDocumentUpgrader::parseJsonAndUpgrade ( ::std::string const & json,
::SemVersion & outDocumentVersion,
::rapidjson::GenericDocument< ::rapidjson::UTF8< char >, ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator >, ::rapidjson::CrtAllocator > & document,
::Core::Path const & resourceName,
bool allowMissingVersionAsZero,
::std::optional<::SemVersion > const & minVersion,
::std::function< bool(::SemVersion const &)> const & shouldUpgrade ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ registerUpgrade()

MCAPI void CerealDocumentUpgrader::registerUpgrade ( ::std::shared_ptr<::CerealSchemaUpgrade > upgrade)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ upgradeJson()

MCAPI bool CerealDocumentUpgrader::upgradeJson ( ::std::string & json,
::SemVersion & outDocumentVersion,
::rapidjson::GenericDocument< ::rapidjson::UTF8< char >, ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator >, ::rapidjson::CrtAllocator > & document,
::Core::Path const & resourceName,
::std::optional<::SemVersion > const & minVersion,
::std::function< bool(::SemVersion const &)> const & shouldUpgrade ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getVersion()

static MCAPI ::std::string CerealDocumentUpgrader::getVersion ( ::rapidjson::GenericDocument< ::rapidjson::UTF8< char >, ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator >, ::rapidjson::CrtAllocator > const & document)
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: