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

◆ SetUpdate()

override void SetUpdate ( bool state)
private

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

67 {
68 //Disable update on server (PluginDeveloperSync)
69 PlayerBase player = PlayerBase.Cast( g_Game.GetPlayer() );
70 PluginDeveloperSync developer_sync = PluginDeveloperSync.Cast( GetPlugin( PluginDeveloperSync ) );
71
72 //if client, send RPC
73 if ( g_Game.IsClient() )
74 {
75 ref Param1<bool> params = new Param1<bool>( state );
76 if ( player )
77 {
78 player.RPCSingleParam( ERPCs.DEV_AGENTS_UPDATE, params, true );
79 SetRPCSent();
80 }
81 }
82 //else set directly
83 else
84 {
85 if ( developer_sync )
86 {
87 developer_sync.EnableUpdate( state, ERPCs.DEV_AGENTS_UPDATE, player );
88 }
89 }
90 }
DayZGame g_Game
Определения DayZGame.c:3942
ERPCs
Определения ERPCs.c:2
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:325
Определения PlayerBaseClient.c:2

Перекрестные ссылки g_Game, GetPlugin() и HudDebugWinBase::SetRPCSent().