16#ifndef AEONGAMES_RESOURCE_H
17#define AEONGAMES_RESOURCE_H
Base class for loadable engine resources.
DLL void LoadFromFile(const std::string &aFilename)
Load the resource from a file on disk.
virtual ~Resource()
Virtual destructor.
DLL void LoadFromId(uint32_t aId)
Load the resource identified by a numeric id.
virtual void LoadFromMemory(const void *aBuffer, size_t aBufferSize)=0
Load the resource from a raw memory buffer.
virtual void Unload()=0
Release all data held by this resource.
DLL size_t GetConsecutiveId() const
Get the Consecutive Id for the resource object.
<- This is here just for the literals
DLL size_t GetNextConsecutiveId()
Returns the next available consecutive resource identifier.