Class Resource

Inheritance Relationships

Base Type

  • private std::enable_shared_from_this< Resource >

Derived Types

Class Documentation

class Resource : private std::enable_shared_from_this<Resource>

Base class for any game-related resource (world, asset, arbitrary blob, etc.)

Subclassed by Cacao::Asset, Cacao::BlobResource, Cacao::ComponentExporter, Cacao::Model, Cacao::World

Public Functions

inline const std::string GetAddress() const

Get the resource’s address (used to reference it)

Returns:

The address

virtual ~Resource()

Protected Functions

inline Resource(const std::string &addr)
void RegisterSelf()

Protected Attributes

std::string address