Working on assets

This commit is contained in:
2022-12-01 22:37:42 -08:00
parent 535e2b2dc5
commit ba9881e39d
18 changed files with 355 additions and 42 deletions

View File

@ -6,6 +6,7 @@
#pragma once
#include "SceneItem.hpp"
#include "event/Event.hpp"
#include "asset/Asset.hpp"
namespace Dawn {
class DawnGame;
@ -41,6 +42,21 @@ namespace Dawn {
*/
SceneItem * createSceneItem();
/**
* Returns the required assets for this scene. Assets required are meant
* to be referenced back to the loader so that special loading actions can
* be performed against them.
*
* @return List of assets required by this scene.
*/
virtual std::vector<Asset*> getRequiredAssets() = 0;
/**
* Method to begin the actual staging of the scene, typically called after
* the scene has finished loading.
*/
virtual void stage() = 0;
/**
* Finds an existing component on the scene (Root Level Only) that has a
* component matching the given component type. Returns nullptr if no item