Static part of every item. More...
Public Attributes | |
float | unit_mul = 1.f |
Property. Multiplier for internal item count units. | |
Texture2D * | image = nullptr |
Property. Item ico for drawing in inventory. | |
StaticMesh * | mesh |
Property. Mesh for rendering item in world (on ground or at conveyor) | |
int64 | max_count = 0 |
Property. Max count that can be stored in one slot of default inventory. | |
bool | craftable = true |
Set visibility for non creative game. | |
Public Attributes inherited from Prototype |
Additional Inherited Members | |
Public Member Functions inherited from Prototype | |
Static Public Member Functions inherited from Prototype | |
static Prototype * | lua_codegen_cast (Object *parent_inst) |
Object name in database. | |
Protected Member Functions inherited from Prototype |
Static part of every item.
ItemData { count: per instance data, item: static part pointer }
Not modifiable in game part of item
Definition at line 38 of file StaticItem.h.
Texture2D* StaticItem::image = nullptr |
Property. Item ico for drawing in inventory.
Default value: nil
Definition at line 91 of file StaticItem.h.
int64 StaticItem::max_count = 0 |
Property. Max count that can be stored in one slot of default inventory.
Default value: 0
Definition at line 119 of file StaticItem.h.
float StaticItem::unit_mul = 1.f |
Property. Multiplier for internal item count units.
When drawing in inventory this multiplier is applying. Showing number = count * multiplier
Default value: 1.0
Definition at line 77 of file StaticItem.h.