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

◆ OnRPCStomach()

void PluginBase::OnRPCStomach ( ParamsReadContext ctx)
inlineprotected

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

1031 {
1032 //clear values
1033 m_PlayerStomachSynced.Clear();
1034
1035 Param1<int> p1 = new Param1<int>(0);
1036 int param_count = 0;
1037 if ( ctx.Read(p1) )
1038 {
1039 param_count = p1.param1;
1040 }
1041
1042 if (param_count)
1043 {
1044 //invidividual stomach items
1045 for ( int i = 0; i < param_count; i++ )
1046 {
1047 Param5<int,int,int,float,float> p5 = new Param5<int,int,int,float,float>(0,0,0,0,0);
1048 ctx.Read(p5);
1049 m_PlayerStomachSynced.Insert(p5);
1050 }
1051 //volume
1052 Param1<float> p1b = new Param1<float>(0);
1053 ctx.Read(p1b);
1054 m_PlayerStomachSynced.Insert(p1b);
1055 //temperature
1056 Param1<float> paramTemp = new Param1<float>(0);
1057 ctx.Read(paramTemp);
1058 m_PlayerStomachSynced.Insert(paramTemp);
1059 }
1060 }
ref array< ref Param > m_PlayerStomachSynced
Определения PluginDeveloperSync.c:33
proto bool Read(void value_in)

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

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