DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetYieldName()

string ActionMineBase::GetYieldName ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

См. определение в файле ActionMineTree.c строка 38

39 {
40 //given the circumstances, the implementation bellow is the path of least resistance
41 Object targetObject = target.GetObject();
42 WoodBase wood = WoodBase.Cast(targetObject);
43 RockBase rock = RockBase.Cast(targetObject);
44 string yieldName;
45 if (wood || rock)
46 {
47 map<string,int> output_map = new map<string,int>;
48 if (wood)
49 {
50 wood.GetMaterialAndQuantityMapEx(item, output_map, m_HarvestType);
51 }
52 else
53 {
54 rock.GetMaterialAndQuantityMap(item, output_map);
55 }
56 if (output_map.Count() > 0)
57 {
58 yieldName = MiscGameplayFunctions.GetItemDisplayName(output_map.GetKey(0));
59 }
60 }
61 return yieldName;
62 }
map
Определения ControlsXboxNew.c:4
void WoodBase()
Определения WoodBase.c:30
EHarvestType m_HarvestType
Определения ActionMineTree.c:19
void GetMaterialAndQuantityMap(ItemBase item, out map< string, int > output_map)
Определения RockBase.c:19
class LOD Object

Перекрестные ссылки ActionTarget, RockBase::GetMaterialAndQuantityMap(), m_HarvestType и WoodBase().

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