100 {
101 PluginDeveloperSync developer_sync = PluginDeveloperSync.Cast(
GetPlugin( PluginDeveloperSync ) );
102
103
105 int count = developer_sync.m_PlayerStomachSynced.Count() - 2;
106
107 for ( int i = 0; i < count; i++ )
108 {
109
110 Param5<int,int,int,float, float> p5 = Param5<int,int,int,float,float>.Cast(developer_sync.m_PlayerStomachSynced.Get(i));
112 }
113
114 if( developer_sync.m_PlayerStomachSynced.Count() )
115 {
116 int last_index = developer_sync.m_PlayerStomachSynced.Count() - 2;
117 Param1<float> p1 = Param1<float>.Cast(developer_sync.m_PlayerStomachSynced.Get(last_index));
118
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());
122 }
123 else
124 {
125 m_WgtOverall.SetText(
"Overall volume: 0" +
" " +
"Average temperature: 0");
126 }
127
128
129
130
131
132 }
void PlayerStomach(PlayerBase player)
PluginBase GetPlugin(typename plugin_type)
void AddValue(string title, string value, string value2)