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

◆ GetSlotIndexByPlant()

int ItemBase::GetSlotIndexByPlant ( Object plant)
inlineprivate

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

767 {
768 if ( m_Slots != NULL )
769 {
770 for ( int i = 0; i < m_Slots.Count(); i++ )
771 {
772 PlantBase found_plant = m_Slots.Get(i).GetPlant();
773
774 if ( found_plant == plant )
775 {
776 return i;
777 }
778 }
779 }
780
781 return -1;
782 }
void PlantBase()
Определения PlantBase.c:54
ref array< ref Slot > m_Slots
Определения GardenBase.c:26

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

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