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

◆ HandleSetTime()

void PluginBase::HandleSetTime ( PlayerBase player,
ParamsReadContext ctx )
inlineprotected

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

173 {
174 #ifdef DEVELOPER
175 Param5<int,int,int,int,int> p5 = new Param5<int,int,int,int,int>(0,0,0,0,0);
176 if (ctx.Read(p5))
177 {
178 int year = p5.param1;
179 int month = p5.param2;
180 int day = p5.param3;
181 int hour = p5.param4;
182 int minute = p5.param5;
183
184 GetGame().GetWorld().SetDate(year,month, day, hour, minute);
185 }
186 #endif
187 }
proto native World GetWorld()
proto bool Read(void value_in)
proto native void SetDate(int year, int month, int day, int hour, int minute)
Sets actual ingame world time.
proto native CGame GetGame()

Перекрестные ссылки GetGame(), CGame::GetWorld(), Serializer::Read() и World::SetDate().

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