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

◆ UpdateLED()

void ClaymoreMine::UpdateLED ( ERemoteDetonatorLEDState pState,
bool pForced = false )
inlineprotected

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

201 {
202 if (pState != m_LastLEDState || pForced)
203 {
204 int selectionIdx = GetHiddenSelectionIndex(SELECTION_NAME_LED);
205
206 switch (pState)
207 {
209 SetObjectTexture(selectionIdx, RemoteDetonator.COLOR_LED_LIT);
210 break;
211 default:
212 SetObjectTexture(selectionIdx, RemoteDetonator.COLOR_LED_OFF);
213 break;
214 }
215
216 m_LastLEDState = pState;
217 }
218 }
ERemoteDetonatorLEDState
Определения RemoteDetonator.c:2
const string SELECTION_NAME_LED
Определения ClaymoreMine.c:5
ERemoteDetonatorLEDState m_LastLEDState
Определения ClaymoreMine.c:8

Перекрестные ссылки m_LastLEDState и SELECTION_NAME_LED.

Используется в AfterStoreLoad(), ClaymoreMine(), OnArmed() и OnDisarmed().