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

◆ InitializeSlots()

void ItemBase::InitializeSlots ( )
inlineprivate

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

159 {
160 m_Slots = new array<ref Slot>;
161 int slots_count = GetGardenSlotsCount();
162
163 for (int i = 0; i < slots_count; i++)
164 {
165 Slot slot = new Slot(GetBaseFertility());
166 slot.SetSlotIndex(i);
167 int i1 = i + 1;
168 string name = "SeedBase_" + i1;
169 int slotID = InventorySlots.GetSlotIdFromString(name);
170 slot.SetSlotId(slotID);
171 slot.SetGarden(this);
172 slot.SetState(eGardenSlotState.STATE_DIGGED);
173 m_Slots.Insert(slot);
174
175 SetWaterQuantity(i, 0);
177 }
178
179 UpdateSlots();
180 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
void SetWaterQuantity(int slotIndex, int value)
Определения GardenBase.c:933
ref array< ref Slot > m_Slots
Определения GardenBase.c:26
int GetGardenSlotsCount()
Определения GardenBase.c:351
void SetFertilizerQuantity(int slotIndex, int value)
Определения GardenBase.c:962
void UpdateSlots()
Определения GardenBase.c:104
float GetBaseFertility()
Определения GardenBase.c:148

Перекрестные ссылки GetBaseFertility(), GardenBase::GetGardenSlotsCount(), InventorySlots::GetSlotIdFromString(), m_Slots, name, SetFertilizerQuantity(), SetWaterQuantity() и UpdateSlots().

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