NcEngine
nc::asset::NcAsset Class Referenceabstract

Asset module interface. More...

#include <NcAsset.h>

Inheritance diagram for nc::asset::NcAsset:
nc::Module

Public Member Functions

virtual auto OnBoneUpdate () noexcept -> Signal< const BoneUpdateEventData & > &=0
 Get the signal for BonesData load and unload events.
 
virtual auto OnCubeMapUpdate () noexcept -> Signal< const CubeMapUpdateEventData & > &=0
 Get the signal for CubeMap load and unload events.
 
virtual auto OnMeshUpdate () noexcept -> Signal< const MeshUpdateEventData & > &=0
 Get the signal for Mesh load and unload events.
 
virtual auto OnSkeletalAnimationUpdate () noexcept -> Signal< const SkeletalAnimationUpdateEventData & > &=0
 Get the signal for SkeletalAnimation load and unload events.
 
virtual auto OnTextureUpdate () noexcept -> Signal< const TextureUpdateEventData & > &=0
 Get the signal for Texture load and unload events.
 
virtual auto OnConvexHullUpdate () noexcept -> Signal< const ConvexHullUpdateEventData & > &=0
 Get the signal for ConvexHull load and unload events.
 
virtual auto OnMeshColliderUpdate () noexcept -> Signal< const MeshColliderUpdateEventData & > &=0
 Get the signal for MeshCollider load and unload events.
 
virtual auto OnFontUpdate () noexcept -> Signal<> &=0
 Get the signal for Font load and unload events.
 
virtual void LoadAssets (const AssetMap &assets)=0
 Load assets from an AssetMap.
 
virtual auto GetLoadedAssets (bool serializableOnly=false) const noexcept -> AssetMap=0
 Get the names of all loaded assets as an AssetMap. More...
 
virtual auto GetAssetPath (AssetType type, size_t id) const -> std::string_view=0
 Get the path to a loaded asset given its id.
 
- Public Member Functions inherited from nc::Module
 Module (size_t id=0) noexcept
 Constructor for the Module interface. More...
 
auto Id () const noexcept
 Get the module's unique id.
 
virtual void OnBuildTaskGraph (task::UpdateTasks &, task::RenderTasks &)
 Called on registered modules when the task graphs are constructed.
 
virtual void OnBeforeSceneLoad (const Scene &)
 Called on registered modules prior to loading a new scene. More...
 
virtual void OnBeforeSceneFragmentLoad ()
 Called on registered modules immediately before loading a SceneFragment file.
 
virtual void OnAfterSceneFragmentLoad ()
 Called on registered modules immediately after loading a SceneFragment file.
 
virtual void Clear () noexcept
 Called on registered modules prior to clearing the Registry. This includes Scene::Unload() and NcEngine::Shutdown().
 

Detailed Description

Asset module interface.

Member Function Documentation

◆ GetLoadedAssets()

virtual auto nc::asset::NcAsset::GetLoadedAssets ( bool  serializableOnly = false) const -> AssetMap
pure virtualnoexcept

Get the names of all loaded assets as an AssetMap.

Parameters
serializableOnlyIf true, excludes runtime assets that are not from disk and cannot survive serialization.

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