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

◆ OnStoreSave()

void BleedingSourcesManagerBase::OnStoreSave ( ParamsWriteContext ctx)
inlineprotected

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

227 {
228 //int count = m_BleedingSources.Count();
229 int active_bits = m_Player.GetBleedingBits();
230 ctx.Write(active_bits);
231
232 int bit_offset = 0;
233 for(int i = 0; i < BIT_INT_SIZE; i++)
234 {
235 int bit = 1 << bit_offset;
236 if( (bit & active_bits) != 0 )
237 {
238 int active_time = GetBleedingSourceActiveTime(bit);
240
241 ctx.Write(active_time);
242 ctx.Write(type);
243 }
244 bit_offset++;
245 }
246 }
eBleedingSourceType
Определения BleedingSource.c:2
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().