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

◆ CalculateLocalSyncBitMask()

int ConstructionPart::CalculateLocalSyncBitMask ( int syncData,
int offset )
inlineprotected

Translates the bitmask value from the main syncVariable into simple int format of 'GetSyncDataSize' size (currently 2 bits)

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

136 {
137 int res = 0;
138 int count = GetSyncDataSize();
139 for (int i = 0; i < count; ++i)
140 {
141 res |= (syncData >> (offset + i) & 1) << i;
142 }
143
144 return res;
145 }
int GetSyncDataSize()
Not ready for overrides yet. All in good time.
Определения ConstructionPart.c:65

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

Используется в Rebuilding::GetPartLocalSyncBitMaskValue().