Tramway SDK
Classes | Namespaces | Macros | Enumerations | Functions | Variables
entities.cpp File Reference
#include <extensions/kitchensink/entities.h>
#include <extensions/kitchensink/soundtable.h>
#include <components/render.h>
#include <components/physics.h>
#include <templates/hashmap.h>

Classes

struct  tram::Ext::Design::EntityChildren
 

Namespaces

namespace  tram
 
namespace  tram::Ext
 
namespace  tram::Ext::Design
 

Macros

#define PlaySound(TYPE)   if (sound) SoundTable::Find(sound)->PlaySound(TYPE, origin, 1.0f);
 

Enumerations

enum  {
  tram::Ext::Design::BUTTON_FIELD_FLAGS , tram::Ext::Design::BUTTON_FIELD_MODEL , tram::Ext::Design::BUTTON_FIELD_LIGHTMAP , tram::Ext::Design::BUTTON_FIELD_ORIGIN ,
  tram::Ext::Design::BUTTON_FIELD_DIRECTION , tram::Ext::Design::BUTTON_FIELD_SPEED , tram::Ext::Design::BUTTON_FIELD_PAUSE , tram::Ext::Design::BUTTON_FIELD_DISTANCE ,
  tram::Ext::Design::BUTTON_FIELD_SOUND , tram::Ext::Design::BUTTON_FIELD_PARENT , tram::Ext::Design::BUTTON_FIELD_LAST
}
 
enum  {
  tram::Ext::Design::BUTTON_FLAG_ROTARY = 1 , tram::Ext::Design::BUTTON_FLAG_MOMENTARY = 2 , tram::Ext::Design::BUTTON_FLAG_TOGGLE = 4 , tram::Ext::Design::BUTTON_FLAG_LOCKED = 8 ,
  tram::Ext::Design::BUTTON_FLAG_PUSHED = 16
}
 
enum  {
  tram::Ext::Design::BUTTON_STATE_NADIR_WAITING , tram::Ext::Design::BUTTON_STATE_NADIR_READY , tram::Ext::Design::BUTTON_STATE_RISING , tram::Ext::Design::BUTTON_STATE_ZENITH_WAITING ,
  tram::Ext::Design::BUTTON_STATE_ZENITH_READY , tram::Ext::Design::BUTTON_STATE_LOWERING
}
 

Functions

void tram::Ext::Design::AddChild (name_t parent, id_t child)
 
void tram::Ext::Design::UpdateHierarchy (id_t parent_id)
 

Variables

Hashmap< EntityChildren > tram::Ext::Design::hierarchy_map ("hierarchy_map", 200)
 

Macro Definition Documentation

◆ PlaySound

#define PlaySound (   TYPE)    if (sound) SoundTable::Find(sound)->PlaySound(TYPE, origin, 1.0f);