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

◆ OnStoreSave()

void BleedingSourcesManagerBase::OnStoreSave ( ParamsWriteContext ctx)
inlineprotected

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

234 {
235 //int count = m_BleedingSources.Count();
236 int active_bits = m_Player.GetBleedingBits();
237 ctx.Write(active_bits);
238
239 int bit_offset = 0;
240 for (int i = 0; i < BIT_INT_SIZE; ++i)
241 {
242 int bit = 1 << bit_offset;
243 if ((bit & active_bits) != 0)
244 {
245 int active_time = GetBleedingSourceActiveTime(bit);
247
248 ctx.Write(active_time);
249 ctx.Write(type);
250 }
251 bit_offset++;
252 }
253 }
const int BIT_INT_SIZE
Определения BitArray.c:4
int GetBleedingSourceActiveTime(int bit)
Определения BleedingSourcesManagerBase.c:274
eBleedingSourceType GetBleedingSourceType(int bit)
Определения BleedingSourcesManagerBase.c:299
proto bool Write(void value_out)

Перекрестные ссылки BIT_INT_SIZE, GetBleedingSourceActiveTime(), GetBleedingSourceType(), m_Player и Serializer::Write().