Skip to content

Resource

class Resource

An Amplitude resource in a FileSystem.

This base class represents a resource (sound files, assets, etc.) in a FileSystem.

Functions

Name Description
~Resource Default destructor.
GetPath Gets the path to the resource.
Load Loads the resource from the given FileSystem.

Function Details

GetPath

[[nodiscard]] virtual const AmOsString& GetPath() const = 0

Gets the path to the resource.

Load

virtual void Load(const FileSystem* loader) = 0

Loads the resource from the given FileSystem.

~Resource

virtual ~Resource() = default

Default destructor.