Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс PaintItem

Закрытые статические члены

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

Подробное описание

Методы

◆ CanPaintItem()

static bool CanPaintItem ( ItemBase item_tool,
ItemBase item_target )
inlinestaticprivate
14 {
15 string spray_color = item_tool.ConfigGetString("color");
16 string item_color = item_target.ConfigGetString("color");
17
18 if( spray_color != item_color )
19 {
20 return true;
21 }
22 else
23 {
24 return false;
25 }
26 }
Definition EntityAI.c:95

Используется в RecipeBase::CanDo().

◆ Paint()

static void 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.

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 }
Definition PaintItem.c:2
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:29

Перекрестные ссылки SwitchItems().

Используется в RecipeBase::Do().

◆ SwitchItems()

static void 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'.

30 {
32 }
Definition PaintItem.c:37

Используется в Paint().


Объявления и описания членов класса находятся в файле: