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

◆ CreatePlant()

void ItemBase::CreatePlant ( Slot slot)
inlineprivate

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

411 {
412 if (g_Game.IsServer())
413 {
414 ItemBase seed = slot.GetSeed();
415 seed.UnlockFromParent();
416 GetGame().ObjectDelete(seed);
417
418 PlantBase plant = PlantBase.Cast( GetInventory().CreateAttachmentEx( slot.m_PlantType, slot.GetSlotId()) );
419
420 int slot_index = slot.GetSlotIndex();
421 slot.SetPlant(plant);
422 plant.Init( this, slot.GetFertility(), slot.m_HarvestingEfficiency, slot.GetWater() );
423 //ShowSelection(SLOT_SELECTION_COVERED_PREFIX + (slot_index + 1).ToStringLen(2));
424
425 plant.LockToParent();
426 }
427 }
DayZGame g_Game
Определения DayZGame.c:3868
class GP5GasMask extends MaskBase ItemBase
void PlantBase()
Определения PlantBase.c:54
proto native void ObjectDelete(Object obj)
proto native CGame GetGame()

Перекрестные ссылки g_Game, GetGame(), CGame::ObjectDelete() и PlantBase().