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

◆ OnRPCStats()

void PluginBase::OnRPCStats ( ParamsReadContext ctx)
inlineprotected

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

472 {
473 //clear values
474 m_PlayerStatsSynced.Clear();
475
476
477 Param1<int> p_count = new Param1<int>(0);
478
479 Param3<string, float, float> p = new Param3<string, float, float>( "", 0, 0 );
480
481 //get param count
482 int param_count = 0;
483 if ( ctx.Read(p_count) )
484 {
485 param_count = p_count.param1;
486 }
487
488 //read values and set
489 for ( int i = 0; i < param_count; i++ )
490 {
491 ctx.Read(p);
492 m_PlayerStatsSynced.Insert( new SyncedValue( p.param1, p.param2, false, p.param3 ) );
493 }
494 }
ref array< ref SyncedValue > m_PlayerStatsSynced
Определения PluginDeveloperSync.c:32
proto bool Read(void value_in)

Перекрестные ссылки m_PlayerStatsSynced и Serializer::Read().

Используется в OnRPC().