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

◆ OnRPCLevels()

void PluginBase::OnRPCLevels ( ParamsReadContext ctx)
inlineprotected

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

755 {
756 //clear values
757 m_PlayerLevelsSynced.Clear();
758
759 Param3<string, float, float> p3 = new Param3<string, float, float>( "", 0,0 );
760
761 //get param count
762 int param_count = 0;
763 if ( ctx.Read(p3) )
764 {
765 param_count = p3.param2;
766 }
767
768 //read values and set
769 for ( int i = 0; i < param_count; i++ )
770 {
771 if ( ctx.Read(p3) )
772 m_PlayerLevelsSynced.Insert( new SyncedValueLevel( p3.param1, p3.param2, p3.param3 ) );
773 }
774 }
void SyncedValueLevel(string name, float value, float value2)
Определения SyncedValue.c:43
ref array< ref SyncedValueLevel > m_PlayerLevelsSynced
Определения PluginDeveloperSync.c:34
proto bool Read(void value_in)

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

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