Nebula
Loading...
Searching...
No Matches
rmluidatabinding.cc File Reference
#include "render/stdneb.h"
#include "rmluidatabinding.h"
#include "rmluicontext.h"
#include "game/world.h"
#include "memdb/attributeregistry.h"
#include "util/stringatom.h"
#include <RmlUi/Core/Context.h>
#include <RmlUi/Core/DataModelHandle.h>
#include <RmlUi/Core/DataVariable.h>

Classes

struct  RmlUi::ComponentBinding

Namespaces

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
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