Tramway SDK
|
Wrapper for an EntityComponent pointer. More...
#include <entitycomponent.h>
Public Member Functions | |
Component () | |
~Component () | |
void | make () |
void | clear () |
T * | get () |
T * | operator-> () |
T & | operator* () |
operator T* () | |
operator bool () | |
Protected Attributes | |
T * | ptr = nullptr |
Wrapper for an EntityComponent pointer.
Automatically constructs the EntityComponent in the correct pool, also provides protection against accidental memory leaks.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
protected |