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

◆ OnStoreLoad()

bool PlayerAgentPool::OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected

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

128 {
129 int count;
130 if (version >= 137)
131 {
132 count = m_PluginTransmissionAgents.GetAgentList().Count();
133 }
134 else
135 {
136 if (!ctx.Read(count))
137 return false;
138 }
139
140
141 for (int i = 0; i < count; ++i)
142 {
143 int agentId;
144 if (!ctx.Read(agentId))
145 return false;
146
147 int agentCount;
148 if (!ctx.Read(agentCount))
149 return false;
150
151 if (version >= 137)
152 {
153 float agentTemporaryResistanceTime;
154 if (!ctx.Read(agentTemporaryResistanceTime))
155 return false;
156
157 SetTemporaryResistance(agentId, agentTemporaryResistanceTime);
158 }
159
160 SetAgentCount(agentId, agentCount);
161 }
162
163 return true;
164 }
void SetTemporaryResistance(int agentId, float time)
Определения PlayerAgentPool.c:300
PluginTransmissionAgents m_PluginTransmissionAgents
Определения PlayerAgentPool.c:14
void SetAgentCount(int agent_id, float count)
Определения PlayerAgentPool.c:247
proto bool Read(void value_in)

Перекрестные ссылки m_PluginTransmissionAgents, Serializer::Read(), SetAgentCount() и SetTemporaryResistance().