DayZ 1.24
Loading...
Searching...
No Matches
PaintItem Class Reference

Static Private Member Functions

static void Paint (ItemBase item_tool, ItemBase item_target, string base_name, PlayerBase player, float specialty_weight=0)
 WIll open the 'item_target' by spawning a new entity and transferring item variables to the new one.
 
static bool CanPaintItem (ItemBase item_tool, ItemBase item_target)
 
static void SwitchItems (EntityAI old_item, string new_item, PlayerBase player)
 Will switch the 'item' for a new game entity, the new entity's classname will be formed by adding the 'suffix' to the classname of the old 'item'.
 

Detailed Description

Definition at line 1 of file PaintItem.c.

Member Function Documentation

◆ CanPaintItem()

static bool PaintItem::CanPaintItem ( ItemBase item_tool,
ItemBase item_target )
inlinestaticprivate

Definition at line 13 of file PaintItem.c.

14 {
15 string spray_color = item_tool.ConfigGetString("color");
16 string item_color = item_target.ConfigGetString("color");
17
19 return true;
20 else
21 return false;
22 }

Referenced by RecipeBase::CanDo().

◆ Paint()

static void PaintItem::Paint ( ItemBase item_tool,
ItemBase item_target,
string base_name,
PlayerBase player,
float specialty_weight = 0 )
inlinestaticprivate

WIll open the 'item_target' by spawning a new entity and transferring item variables to the new one.

Definition at line 4 of file PaintItem.c.

5 {
6 string spray_color = item_tool.ConfigGetString("color");
7 string item_color = item_target.ConfigGetString("color");
8
9 string new_class_name = base_name + "_" + spray_color;
11 }
static void SwitchItems(EntityAI old_item, string new_item, PlayerBase player)
Will switch the 'item' for a new game entity, the new entity's classname will be formed by adding the...
Definition PaintItem.c:25

References SwitchItems().

Referenced by RecipeBase::Do().

◆ SwitchItems()

static void PaintItem::SwitchItems ( EntityAI old_item,
string new_item,
PlayerBase player )
inlinestaticprivate

Will switch the 'item' for a new game entity, the new entity's classname will be formed by adding the 'suffix' to the classname of the old 'item'.

Definition at line 25 of file PaintItem.c.

Referenced by Paint().


The documentation for this class was generated from the following file: