Working on assets
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user