ZeroZero Game Engine  v0.0
A 3D game engine using Vulkan & Jolt
Public Typedefs | Public Member Functions | List of all members
Signal Class Reference

Detailed Description

A signal of an Object

Public Typedefs

using Handler = function< void (void *)>
 

Public Member Functions

void connect (const Handler &handler)
 
void emit (void *params) const
 

Member Typedef Documentation

using Handler = function<void(void*)>

Lambda expression who answer to emitted signals

Member Function Documentation

void connect ( const Handler handler)
inline

Connects a function to the signal

void emit ( void *  params) const

Emits the signal by calling all the connected functions in the connect order

Parameters
paramsparameters to pass to the function connected to the signal