GUInity
Public Member Functions | List of all members
Asset Class Reference

#include <Asset.hpp>

Inheritance diagram for Asset:
Font Material Mesh PhysicsMaterial Shader Sound Texture SkinnedMesh

Public Member Functions

 Asset ()
 
virtual ~Asset ()
 
void setAssetID (unsigned int newAssetID)
 
unsigned int getAssetID () const
 
string getPath ()
 
void setPath (string newPath)
 
void setName (string name)
 
string getName ()
 
void setCRC (int crc)
 
int setCRC ()
 

Detailed Description

Class Asset. This class represents assets in game. This can vary from textures to meshes and audio files. Virtually, everything that can be serialized to a file is an Asset. Currently, these are the assets: -Texture -Font -Audio -Mesh

The idea is to simulate the Assets folder in Unity. Therefore, assets place in a folder should be loaded automatically. Each Asset has a CRC (checksum) to check if the file has changed or not.

Constructor & Destructor Documentation

Asset::Asset ( )
inline

Default Constructor

virtual Asset::~Asset ( )
inlinevirtual

Default Destructor - Virtual because it's a parent class

Member Function Documentation

unsigned int Asset::getAssetID ( ) const
inline

assetID getter

string Asset::getName ( )
inline

name getter

string Asset::getPath ( )
inline

Full path getter

void Asset::setAssetID ( unsigned int  newAssetID)
inline

assetID setter

void Asset::setCRC ( int  crc)
inline

CRC setter

int Asset::setCRC ( )
inline

CRC getter

void Asset::setName ( string  name)
inline

name setter

void Asset::setPath ( string  newPath)
inline

Full path setter


The documentation for this class was generated from the following file: