271 {
273 {
274 return;
275 }
276
277 switch ( rpc_type )
278 {
279 case ERPCs.DEV_STATS_UPDATE:
280 {
282 }
283
284 case ERPCs.DEV_LEVELS_UPDATE:
285 {
287 }
288
289 case ERPCs.DEV_MODS_UPDATE:
290 {
292 }
293
294 case ERPCs.DEV_AGENTS_UPDATE:
295 {
297 }
298
299 case ERPCs.DEV_STOMACH_UPDATE:
300 {
302 }
303
304 case ERPCs.DEV_HEALTH_UPDATE:
305 {
307 }
308
309 case ERPCs.DEV_RPC_STATS_DATA:
310 {
312 }
313
314 case ERPCs.DEV_RPC_LEVELS_DATA:
315 {
317 }
318
319 case ERPCs.DEV_RPC_MODS_DATA:
320 {
322 }
323
324 case ERPCs.DEV_RPC_MODS_DATA_DETAILED:
325 {
327 }
328
329 case ERPCs.DEV_RPC_AGENTS_DATA:
330 {
332 }
333 case ERPCs.DEV_RPC_STOMACH_DATA:
334 {
336 }
337
338 case ERPCs.DEV_RPC_MODS_ACTIVATE:
339 {
341 }
342 case ERPCs.DEV_RPC_MODS_DETAILED:
343 {
345 }
346
347 case ERPCs.DEV_RPC_MODS_DEACTIVATE:
348 {
350 }
351
352 case ERPCs.DEV_RPC_MODS_LOCK:
353 {
354 int id;
355 bool lock;
358 }
359
360 case ERPCs.DEV_RPC_MODS_RESET:
361 {
362 player.GetModifiersManager().DeactivateAllModifiers();
363 break;
364 }
365
366 case ERPCs.DEV_RPC_STATS_RESET:
367 {
368 player.GetPlayerStats().ResetAllStats();
369 break;
370 }
371
372 case ERPCs.DEV_RPC_STAT_SET:
373 {
375 break;
376 }
377 case ERPCs.DEV_TEMP_UPDATE:
378 {
380 break;
381 }
382 case ERPCs.DEV_RPC_HEALTH_DATA:
383 {
385 }
386
387 case ERPCs.DEV_RPC_HEALTH_SET:
388 {
390 break;
391 }
392
393 case ERPCs.DEV_RPC_HORTICULTURE_UPDATE:
394 {
396 break;
397 }
398
399 case ERPCs.DEV_RPC_HORTICULTURE_SPEED:
400 {
402 break;
403 }
404 }
405 }
void OnRPCHealthSet(ParamsReadContext ctx, PlayerBase player)
void OnRPCTemp(ParamsReadContext ctx, PlayerBase player)
void OnRPCStomach(ParamsReadContext ctx)
int GetRPCModifierID(ParamsReadContext ctx)
void OnRPCMods(ParamsReadContext ctx)
void OnRPCHorticultureSpeed(ParamsReadContext ctx, PlayerBase player)
void OnRPCHealth(ParamsReadContext ctx, PlayerBase player)
void OnRPCLevels(ParamsReadContext ctx)
void DeactivateModifier(int id, PlayerBase player=NULL)
void OnRPCStats(ParamsReadContext ctx)
void ActivateModifier(int id, PlayerBase player=NULL)
void OnRPCStatSet(ParamsReadContext ctx, PlayerBase player)
bool GetRPCUpdateState(ParamsReadContext ctx)
void EnableUpdate(bool enable, int type, PlayerBase player)
void OnRPCAgents(ParamsReadContext ctx)
void OnRPCHorticultUpdate(ParamsReadContext ctx, PlayerBase player)
void LockModifier(int id, bool lock, PlayerBase player=NULL)
void RequestDetailedInfo(int id, notnull PlayerBase player)
void OnRPCModsDetailed(ParamsReadContext ctx)
void GetRPCModifierLock(ParamsReadContext ctx, out int id, out bool lock)
proto native CGame GetGame()