65 PluginDeveloperSync developer_sync = PluginDeveloperSync.Cast(
GetPlugin( PluginDeveloperSync ) );
70 ref Param1<bool> params =
new Param1<bool>( state );
73 player.RPCSingleParam(
ERPCs.DEV_STOMACH_UPDATE, params,
true );
82 developer_sync.EnableUpdate( state,
ERPCs.DEV_STOMACH_UPDATE, player );
101 PluginDeveloperSync developer_sync = PluginDeveloperSync.Cast(
GetPlugin( PluginDeveloperSync ) );
105 int count = developer_sync.m_PlayerStomachSynced.Count() - 2;
107 for (
int i = 0; i < count; i++ )
110 Param5<int,int,int,float, float> p5 = Param5<int,int,int,float,float>.Cast(developer_sync.m_PlayerStomachSynced.Get(i));
114 if( developer_sync.m_PlayerStomachSynced.Count() )
116 int last_index = developer_sync.m_PlayerStomachSynced.Count() - 2;
117 Param1<float> p1 = Param1<float>.Cast(developer_sync.m_PlayerStomachSynced.Get(last_index));
119 last_index = developer_sync.m_PlayerStomachSynced.Count() - 1;
120 Param1<float> paramTemp = Param1<float>.Cast(developer_sync.m_PlayerStomachSynced.Get(last_index));
121 m_WgtOverall.SetText(
"Overall volume:" + p1.param1.ToString() +
" " +
"Average temperature:" + paramTemp.param1.ToString());
125 m_WgtOverall.SetText(
"Overall volume: 0" +
" " +
"Average temperature: 0");
134 void AddValue(
string classname,
int food_stage,
int agents,
float amount,
float temperature)
136 int index =
m_WgtValues.AddItem( classname, NULL, 0 );
137 string stage =
typename.EnumToString(
FoodStageType, food_stage) +
"(" + food_stage.ToString()+
")";;
142 string agent_line =
"("+agents.ToString()+
") ";
144 for(
int i = 0; i < agent_list.Count();i++)
146 agent_line +=
"," +agent_list.Get(i);