Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ResourceLoaderBase Class Referenceabstract
Inheritance diagram for ResourceLoaderBase:

Public Types

using ResourceFileExtensionSetType = ::gsl::span<::std::string const>

Public Member Functions

virtual bool load (::ResourceLocationPair const &resourceLocationPair, ::std::string &resourceStream, ::gsl::span<::std::string const > extensionList) const
virtual ::Core::PathBuffer<::std::string > getPath (::ResourceLocation const &resourceLocation) const
virtual ::Core::PathBuffer<::std::string > getPath (::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensionList) const
virtual ::Core::PathBuffer<::std::string > getPathContainingResource (::ResourceLocation const &resourceLocation) const
virtual ::std::pair< int, ::std::string_view > getPackStackIndexOfResource (::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensionList) const
virtual bool load (::ResourceLocation const &resourceLocation, ::std::string &resourceStream) const =0
virtual bool load (::ResourceLocation const &resourceLocation, ::std::string &resourceStream, ::gsl::span<::std::string const > extensions) const =0
virtual::mce::Image loadTexture (::ResourceLocation const &resourceLocation) const =0
MCAPI void * $ctor (::std::function<::Core::PathBuffer<::std::string >()> getPath)
MCFOLD void $dtor ()

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 64, ::std::function<::Core::PathBuffer<::std::string >()> > mGetPath
::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlock > mControlBlock

Member Function Documentation

◆ load()

virtual bool ResourceLoaderBase::load ( ::ResourceLocationPair const & resourceLocationPair,
::std::string & resourceStream,
::gsl::span<::std::string const > extensionList ) const
virtual

Implements ResourceLoader.

◆ getPath() [1/2]

virtual ::Core::PathBuffer<::std::string > ResourceLoaderBase::getPath ( ::ResourceLocation const & resourceLocation) const
virtual

Implements ResourceLoader.

◆ getPath() [2/2]

virtual ::Core::PathBuffer<::std::string > ResourceLoaderBase::getPath ( ::ResourceLocation const & resourceLocation,
::gsl::span<::std::string const > extensionList ) const
virtual

Implements ResourceLoader.

◆ getPathContainingResource()

virtual ::Core::PathBuffer<::std::string > ResourceLoaderBase::getPathContainingResource ( ::ResourceLocation const & resourceLocation) const
virtual

Implements ResourceLoader.

◆ getPackStackIndexOfResource()

virtual ::std::pair< int, ::std::string_view > ResourceLoaderBase::getPackStackIndexOfResource ( ::ResourceLocation const & resourceLocation,
::gsl::span<::std::string const > extensionList ) const
virtual

Implements ResourceLoader.

◆ $ctor()

MCAPI void * ResourceLoader::$ctor ( ::std::function<::Core::PathBuffer<::std::string >()> getPath)
inherited
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.

◆ $vftable()

MCAPI void ** ResourceLoader::$vftable ( )
staticinherited
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: