Agent's growth/death simulation.
56 {
58 return;
59
61
64 {
67
69
70 float growDelta;
71
72 if (agentPotency <= immunityLevel)
73 {
75 if (temporaryResistance > 1.0)
76 continue;
77
79 continue;
80
82 continue
83
85 growDelta = invasibility * deltaT;
86 }
87 else
88 {
90 growDelta = -dieOffSpeed * deltaT;
91 }
92
94 float newCount = oldCount + growDelta;
95 newCount = Math.Clamp(newCount, 0, maxCount);
96
99 }
100 }
bool IsPluginManagerExists()
PluginTransmissionAgents m_PluginTransmissionAgents
ref map< int, float > m_VirusPool
float GetTemporaryResistance(int agentId)
Returns remaining temporary resistance time for specified agent.
void SetAgentCount(int agent_id, float count)
Directly set the count of agents for give id in pool.