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

◆ OnRPCMods()

void PluginBase::OnRPCMods ( ParamsReadContext ctx)
inlineprotected

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

831 {
832 //clear values
833 m_PlayerModsSynced.Clear();
834
835 //ref Param3<string, float, bool> p = new Param3<string, float, bool>( "", 0, false );
836 Param1<int> p1 = new Param1<int>(0);
837 Param4<int, string, bool, bool> p4 = new Param4<int, string, bool, bool>( 0,"", false, false );
838 //get param count
839 int param_count = 0;
840 if ( ctx.Read(p1) )
841 {
842 param_count = (int) p1.param1;
843 }
844
845 //read values and set
846 for ( int i = 0; i < param_count; i++ )
847 {
848 if (ctx.Read(p4))
849 {
850 m_PlayerModsSynced.Insert( new SyncedValueModifier( p4.param1, p4.param2, p4.param3, p4.param4 ) );
851 }
852 }
853 }
Param3 int
ref array< ref SyncedValueModifier > m_PlayerModsSynced
Определения PluginDeveloperSync.c:35
proto bool Read(void value_in)

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

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