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

◆ SetSlotState()

void ItemBase::SetSlotState ( int slotIndex,
int value )
inlineprivate

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

495 {
496 // value should be 1 or 2
497 int shift = slotIndex * 2;
498 int mask = 3 << shift;
499 int currentState = (m_SlotState & mask) >> shift;
500
501 // Clear out the bits for this slot
502 m_SlotState &= ~mask;
503
504 // Set the new value
505 m_SlotState |= (value << shift);
506
507 if (g_Game.IsServer() && currentState != value)
508 SetSynchDirty();
509 }
DayZGame g_Game
Определения DayZGame.c:3868
int m_SlotState
Определения GardenBase.c:31

Перекрестные ссылки g_Game и m_SlotState.