DayZ 1.24
Loading...
Searching...
No Matches
TanLeatherLambda Class Reference
Inheritance diagram for TanLeatherLambda:
[legend]
Collaboration diagram for TanLeatherLambda:
[legend]

Private Member Functions

void TanLeatherLambda (EntityAI old_item, string new_item_type, PlayerBase player, int pelt_count)
 
override void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
 

Private Attributes

int m_PeltCount
 

Detailed Description

Definition at line 554 of file Barrel_ColorBase.c.

Constructor & Destructor Documentation

◆ TanLeatherLambda()

void TanLeatherLambda::TanLeatherLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player,
int pelt_count )
inlineprivate

Definition at line 558 of file Barrel_ColorBase.c.

References m_PeltCount.

Member Function Documentation

◆ CopyOldPropertiesToNew()

override void TanLeatherLambda::CopyOldPropertiesToNew ( notnull EntityAI old_item,
EntityAI new_item )
inlineprivate

Definition at line 560 of file Barrel_ColorBase.c.

561 {
562 super.CopyOldPropertiesToNew(old_item, new_item);
563
564 if (new_item)
565 {
567 tanned_pelt.SetQuantity(m_PeltCount);
568 }
569 else
570 Debug.LogError("TanLeatherLambda: failed to create new item", "static");
571 }
Definition Debug.c:14
static void LogError(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as error message.
Definition Debug.c:341

References Debug::LogError(), and m_PeltCount.

Member Data Documentation

◆ m_PeltCount

int TanLeatherLambda::m_PeltCount
private

Definition at line 556 of file Barrel_ColorBase.c.

Referenced by CopyOldPropertiesToNew(), and TanLeatherLambda().


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