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

◆ GetMostSignificantBleedingSource()

int BleedingSourcesManagerBase::GetMostSignificantBleedingSource ( )
inlineprotected

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

98 {
99 int bleeding_sources_bits = m_Player.GetBleedingBits();
100
101 float highest_flow;
102 int highest_flow_bit;
103 int bit_offset;
104
105 for (int i = 0; i < BIT_INT_SIZE; ++i)
106 {
107 int bit = 1 << bit_offset;
108
109 if ((bit & bleeding_sources_bits) != 0)
110 {
111 BleedingSourceZone meta = GetBleedingSourceMeta(bit);
112 if (meta)
113 {
114 if (meta.GetFlowModifier() > highest_flow)
115 {
116 highest_flow = meta.GetFlowModifier();
117 highest_flow_bit = bit;
118 //Print(meta.GetSelectionName());
119 }
120 }
121 }
122 bit_offset++;
123 }
124 return highest_flow_bit;
125 }
const int BIT_INT_SIZE
Определения BitArray.c:4
float GetFlowModifier()
Определения BleedingSourceZone.c:61
BleedingSourceZone GetBleedingSourceMeta(int bit)
Определения BleedingSourcesManagerBase.c:127

Перекрестные ссылки BIT_INT_SIZE, GetBleedingSourceMeta(), BleedingSourceZone::GetFlowModifier() и m_Player.

Используется в RemoveMostSignificantBleedingSource().