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

◆ GetSlotIndexByPlant()

int ItemBase::GetSlotIndexByPlant ( Object plant)
inlineprivate

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

709 {
710 if ( m_Slots != NULL )
711 {
712 for ( int i = 0; i < m_Slots.Count(); i++ )
713 {
714 PlantBase found_plant = m_Slots.Get(i).GetPlant();
715
716 if ( found_plant == plant )
717 {
718 return i;
719 }
720 }
721 }
722
723 return -1;
724 }
void PlantBase()
Определения PlantBase.c:54
ref array< ref Slot > m_Slots
Определения GardenBase.c:25

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

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