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

◆ OnRPC()

void OnRPC ( int rpc_type,
ParamsReadContext ctx )

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

652 {
653 int symptomId;
654 int uid;
655
656 switch (rpc_type)
657 {
658 case ERPCs.RPC_PLAYER_SYMPTOM_ON:
660 symptomId = CachedObjectsParams.PARAM2_INT_INT.param1;
662 if (IsSymptomPrimary(symptomId))
663 {
665 QueueUpPrimarySymptom(symptomId, uid);
666 }
667 else
668 QueueUpSecondarySymptom(symptomId, uid);
669
670 break;
671 case ERPCs.RPC_PLAYER_SYMPTOM_OFF:
673 symptomId = CachedObjectsParams.PARAM2_INT_INT.param1;
675 if (IsSymptomPrimary(symptomId))
676 {
678 }
679 else
680 RemoveSecondarySymptom(symptomId);
681
682 break;
683 case ERPCs.RPC_SYMPTOM_PARAM_SYNC:
685 ctx.Read(paramsNew);
686 m_AvailableSymptoms.Get(paramsNew.param1).SetParam(paramsNew);
687
688 break;
689 }
690 }
ERPCs
Определения ERPCs.c:2
void QueueUpSecondarySymptom(int symptom_id, int uid=-1)
Определения StateManager.c:569
void RemoveSecondarySymptom(int symptom_id)
Removes a single Symptom.
Определения StateManager.c:592
SymptomBase QueueUpPrimarySymptom(int symptom_id, int uid=-1)
Определения StateManager.c:534
bool IsSymptomPrimary(int symptom_id)
Определения StateManager.c:270
void CleanUpPrimaryQueue()
Определения StateManager.c:526
ref map< int, ref SymptomBase > m_AvailableSymptoms
Определения StateManager.c:107
static ref Param2< int, int > PARAM2_INT_INT
Определения UtilityClasses.c:16
Определения PPEConstants.c:68
proto bool Read(void value_in)

Перекрестные ссылки CleanUpPrimaryQueue(), IsSymptomPrimary(), m_AvailableSymptoms, CachedObjectsParams::PARAM2_INT_INT, QueueUpPrimarySymptom(), QueueUpSecondarySymptom(), Serializer::Read() и RemoveSecondarySymptom().