Skip to content

Namespace atlas::sync_update

Namespace List > atlas > sync_update

Public Attributes

Type Name
std::deque< std::function< void()> > s_late_update
std::deque< std::function< void()> > s_physica_update
std::deque< std::function< void()> > s_ui_update
std::deque< std::function< void()> > s_update

Public Functions

Type Name
void attach (UObject * p_instance, const UCallable & p_callable)
float delta_time ()
void initialize ()
void on_late_update ()
void on_physics_update ()
void on_ui_update ()
void on_update ()
void post (UObject * p_instance, const UCallable & p_callable)
void sync (UObject * p_instance, const UFunction & p_callable)
void sync_physics (UObject * p_instance, const UFunction & p_callable)

Public Attributes Documentation

variable s_late_update

std::deque<std::function<void()> > atlas::sync_update::s_late_update;

variable s_physica_update

std::deque<std::function<void()> > atlas::sync_update::s_physica_update;

variable s_ui_update

std::deque<std::function<void()> > atlas::sync_update::s_ui_update;

variable s_update

std::deque<std::function<void()> > atlas::sync_update::s_update;

Public Functions Documentation

function attach

template<typename UObject, typename UCallable>
void atlas::sync_update::attach (
    UObject * p_instance,
    const UCallable & p_callable
) 

Note:

Attach our UI Updates


function delta_time

float atlas::sync_update::delta_time () 

Note:

Retrieves the local delta time


function initialize

void atlas::sync_update::initialize () 

Note:

Initializes sync update manager to make sure our manager is able to dispatch our update functions.


function on_late_update

void atlas::sync_update::on_late_update () 

function on_physics_update

void atlas::sync_update::on_physics_update () 

function on_ui_update

void atlas::sync_update::on_ui_update () 

function on_update

void atlas::sync_update::on_update () 

function post

template<typename UObject, typename UCallable>
inline void atlas::sync_update::post (
    UObject * p_instance,
    const UCallable & p_callable
) 

Note:

Post update - newly defined late update


function sync

template<typename UObject, typename UFunction>
void atlas::sync_update::sync (
    UObject * p_instance,
    const UFunction & p_callable
) 

Note:

Synchronize our update per frame


function sync_physics

template<typename UObject, typename UFunction>
void atlas::sync_update::sync_physics (
    UObject * p_instance,
    const UFunction & p_callable
) 


The documentation for this class was generated from the following file TheAtlasEngine/atlas/core/update_handlers/sync_update.hpp