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

◆ OnBleedingBitsUpdate()

void BleedingSourcesManagerBase::OnBleedingBitsUpdate ( int old_mask,
int new_mask )
inlineprotected

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

89 {
90 for (int i = 0; i < 32; i++)
91 {
92 int compare_bit = 1 << i;
93 int new_compare_result_bit = compare_bit & new_mask;
94 int old_compare_result_bit = compare_bit & old_mask;
95
96 if ( new_compare_result_bit )
97 {
98 if ( !(new_compare_result_bit & old_mask))
99 {
100 //a different active bit in the new mask
101 AddBleedingSource(new_compare_result_bit);
102 }
103 }
104 else
105 {
106 if ( new_compare_result_bit != old_compare_result_bit )
107 {
108 RemoveBleedingSource(old_compare_result_bit);
109 }
110 }
111 }
112 }
void AddBleedingSource(int bit)
Определения BleedingSourcesManagerBase.c:260
bool RemoveBleedingSource(int bit)
Определения BleedingSourcesManagerBase.c:308

Перекрестные ссылки AddBleedingSource() и RemoveBleedingSource().

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