134 {
135 int count;
136 if (version >= 137)
137 {
139 }
140 else
141 {
142 if (!ctx.
Read(count))
143 return false;
144 }
145
146
147 for (int i = 0; i < count; ++i)
148 {
149 int agentId;
150 if (!ctx.
Read(agentId))
151 return false;
152
153 int agentCount;
154 if (!ctx.
Read(agentCount))
155 return false;
156
157 if (version >= 137)
158 {
159 float agentTemporaryResistanceTime;
160 if (!ctx.
Read(agentTemporaryResistanceTime))
161 return false;
162
164 }
165
167 }
168
169 return true;
170 }
void SetTemporaryResistance(int agentId, float time)
Sets temporary resistance time against specified agent contraction.
PluginTransmissionAgents m_PluginTransmissionAgents
void SetAgentCount(int agent_id, float count)
Directly set the count of agents for give id in pool.
proto bool Read(void value_in)