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

◆ RegisterConsumer()

void StaminaConsumers::RegisterConsumer ( EStaminaConsumers consumer,
float threshold,
float depletion_threshold = -1 )
inlineprotected

init of StaminaConsumer - threshold, state

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

51 {
52 if (depletion_threshold == -1)
53 {
54 depletion_threshold = threshold;
55 }
56
57 if ( !m_StaminaConsumers.Contains(consumer) )
58 {
60 StaminaConsumer sc = new StaminaConsumer(threshold, depletion_threshold, true);
61 m_StaminaConsumers.Set(consumer, sc);
62 }
63 }
void StaminaConsumer(float threshold, float threshold2, bool state)
Определения StaminaHandler.c:24
ref map< EStaminaConsumers, ref StaminaConsumer > m_StaminaConsumers
Определения StaminaHandler.c:43

Перекрестные ссылки m_StaminaConsumers и StaminaConsumer().