Nebula
Loading...
Searching...
No Matches
rmluidatabinding.h File Reference
#include "game/entity.h"
#include "game/component.h"
#include "util/string.h"

Go to the source code of this file.

Namespaces

namespace  Game
 Game::EditorState.
namespace  RmlUi

Functions

ComponentBinding * RmlUi::BindComponent (const Util::String &model, const Util::String &name, Game::World *world, Game::Entity entity, Game::ComponentId component)
 bind a component of an entity as variable 'name' of an existing data model
template<typename COMPONENT>
ComponentBinding * RmlUi::BindComponent (const Util::String &model, const Util::String &name, Game::World *world, Game::Entity entity)
 bind a component of an entity as variable 'name' of an existing data model
void RmlUi::SetBindingEntity (ComponentBinding *binding, Game::Entity entity)
 point a binding at another entity, e.g. when the player character changes
Game::Entity RmlUi::GetBindingEntity (const ComponentBinding *binding)
 get the entity a binding reads from
void RmlUi::UnbindComponents (const Util::String &model)
 release the bindings of a data model, call before removing the model from the context
void RmlUi::UpdateComponentBindings ()
 mark all bound variables dirty, called every frame by RmlUiContext
void RmlUi::DiscardComponentBindings ()
 release all bindings and type definitions, called when RmlUi shuts down