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

◆ Harvest()

void Harvest ( PlayerBase player)
private

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

568 {
569 if (IsHarvestable())
570 {
571 for ( int i = 0; i < m_CropsCount; i++ )
572 {
573 vector pos = player.GetPosition();
574 ItemBase item = ItemBase.Cast( GetGame().CreateObjectEx( m_CropsType, pos, ECE_PLACE_ON_SURFACE ) );
575 item.SetQuantity( item.GetQuantityMax() );
576 }
577 }
578
579 m_HasCrops = false;
580
581 SetSynchDirty();
582
583 UpdatePlant();
584 m_GardenBase.SyncSlots();
585 }
const int ECE_PLACE_ON_SURFACE
Определения CentralEconomy.c:37
GardenBase m_GardenBase
Определения PlantBase.c:39
bool m_HasCrops
Определения PlantBase.c:18
int m_CropsCount
Определения PlantBase.c:17
bool IsHarvestable()
Определения PlantBase.c:679
string m_CropsType
Определения PlantBase.c:19
void UpdatePlant()
Определения PlantBase.c:448
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
Определения PileOfWoodenPlanks.c:88
Определения EnConvert.c:106
proto native CGame GetGame()

Перекрестные ссылки ECE_PLACE_ON_SURFACE, GetGame(), IsHarvestable(), m_CropsCount, m_CropsType, m_GardenBase, m_HasCrops, ItemBase::SetQuantity() и UpdatePlant().