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

◆ OnRPC()

void SymptomManager::OnRPC ( int rpc_type,
ParamsReadContext ctx )
inlineprivate

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

591 {
592 ctx.Read(CachedObjectsParams.PARAM2_INT_INT);
593 int symptom_id = CachedObjectsParams.PARAM2_INT_INT.param1;
594 int uid = CachedObjectsParams.PARAM2_INT_INT.param2;
595
596 bool is_primary = m_AvailableSymptoms.Get(symptom_id).IsPrimary();
597
598 if ( rpc_type == ERPCs.RPC_PLAYER_SYMPTOM_ON )
599 {
600 if ( is_primary )
601 {
603 QueueUpPrimarySymptom(symptom_id,uid);
604 }
605 else
606 {
607 QueueUpSecondarySymptom(symptom_id,uid);
608 }
609 }
610 else if ( rpc_type == ERPCs.RPC_PLAYER_SYMPTOM_OFF )
611 {
612 if ( is_primary )
613 {
615 }
616 else
617 {
618 RemoveSecondarySymptom( symptom_id );
619 }
620 }
621 }
ERPCs
Определения ERPCs.c:2
proto bool Read(void value_in)
void QueueUpSecondarySymptom(int symptom_id, int uid=-1)
Определения StateManager.c:508
ref map< int, ref SymptomBase > m_AvailableSymptoms
Определения StateManager.c:50
void RemoveSecondarySymptom(int symptom_id)
Removes a single Symptom.
Определения StateManager.c:531
SymptomBase QueueUpPrimarySymptom(int symptom_id, int uid=-1)
Определения StateManager.c:473
void CleanUpPrimaryQueue()
Определения StateManager.c:465

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