Tramway SDK
Static Public Member Functions | Public Attributes | List of all members
tram::Ext::Kitchensink::ItemClass Struct Reference

#include <inventory.h>

Static Public Member Functions

static ItemClassFind (name_t item_class)
 

Public Attributes

name_t name
 
name_t viewmodel
 
name_t worldmodel
 
item_action_func primary_action = nullptr
 
item_action_func secondary_action = nullptr
 
item_action_func idle_action = nullptr
 
bool draw_hands = false
 
name_t equipped_slot
 
GUI::font_t sprite_font = 0
 
GUI::font_t icon_font = 0
 
GUI::glyph_t sprite_glyph = 0
 
GUI::glyph_t icon_glyph = 0
 
int width = 1
 
int height = 1
 
int stack = 1
 
float weight = 0.0f
 
std::vector< Attributeattributes
 

Member Function Documentation

◆ Find()

ItemClass * tram::Ext::Kitchensink::ItemClass::Find ( name_t  item_class)
static

Member Data Documentation

◆ attributes

std::vector<Attribute> tram::Ext::Kitchensink::ItemClass::attributes

◆ draw_hands

bool tram::Ext::Kitchensink::ItemClass::draw_hands = false

◆ equipped_slot

name_t tram::Ext::Kitchensink::ItemClass::equipped_slot

◆ height

int tram::Ext::Kitchensink::ItemClass::height = 1

◆ icon_font

GUI::font_t tram::Ext::Kitchensink::ItemClass::icon_font = 0

◆ icon_glyph

GUI::glyph_t tram::Ext::Kitchensink::ItemClass::icon_glyph = 0

◆ idle_action

item_action_func tram::Ext::Kitchensink::ItemClass::idle_action = nullptr

◆ name

name_t tram::Ext::Kitchensink::ItemClass::name

◆ primary_action

item_action_func tram::Ext::Kitchensink::ItemClass::primary_action = nullptr

◆ secondary_action

item_action_func tram::Ext::Kitchensink::ItemClass::secondary_action = nullptr

◆ sprite_font

GUI::font_t tram::Ext::Kitchensink::ItemClass::sprite_font = 0

◆ sprite_glyph

GUI::glyph_t tram::Ext::Kitchensink::ItemClass::sprite_glyph = 0

◆ stack

int tram::Ext::Kitchensink::ItemClass::stack = 1

◆ viewmodel

name_t tram::Ext::Kitchensink::ItemClass::viewmodel

◆ weight

float tram::Ext::Kitchensink::ItemClass::weight = 0.0f

◆ width

int tram::Ext::Kitchensink::ItemClass::width = 1

◆ worldmodel

name_t tram::Ext::Kitchensink::ItemClass::worldmodel

The documentation for this struct was generated from the following files: