NWengine 0.9
Loading...
Searching...
No Matches
GameObject.h File Reference

Defines the GameObject class and its related components. More...

#include "Globals.h"
#include "Serialization.h"
#include <map>

Go to the source code of this file.

Classes

class  GameComponent
 Base class for game components. More...
 
class  GameObject
 Class representing a game object. More...
 

Macros

#define ADD_COMPONENT(str, type)   if (type == #str ) return this->AddComponent<str>();
 Macro to add a component to the GameObject.
 

Typedefs

typedef int(* DrawCallback) (void *data)
 Function pointer type for draw callbacks.
 

Detailed Description

Defines the GameObject class and its related components.

Macro Definition Documentation

◆ ADD_COMPONENT

#define ADD_COMPONENT ( str,
type )   if (type == #str ) return this->AddComponent<str>();

Macro to add a component to the GameObject.

Parameters
strThe name of the component.
typeThe type of the component.

Typedef Documentation

◆ DrawCallback

typedef int(* DrawCallback) (void *data)

Function pointer type for draw callbacks.

Parameters
dataThe data to be passed to the draw callback.
Returns
The result of the draw callback.