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

◆ DisplayDebug()

void BleedingSourcesManagerBase::DisplayDebug ( )
inlineprotected

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

182 {
183 m_ShowingDiag = true;
184
185 DbgUI.BeginCleanupScope();
186 DbgUI.Begin("Bleeding Sources", 50, 50);
187
188 int pow = 0;
189
190 bool anyBleedingSourceActive = false;
191
192 for (int i = 0; i < BIT_INT_SIZE ; i++)
193 {
194 int bit = Math.Pow(2, pow);
195 pow++;
196 if ( (m_BleedingBits & bit) != 0)
197 {
198 BleedingSourceZone bsz = GetBleedingSourceMeta(bit);
199
200 string name = GetSelectionNameFromBit(bit);
201 string slot_name = InventorySlots.GetSlotName(bsz.GetInvLocation());
202 DbgUI.Text(name + "| slot name: "+ slot_name);
203 anyBleedingSourceActive = true;
204 }
205 }
206
207 if (!anyBleedingSourceActive)
208 {
209 DbgUI.Text("Currently no bleeding sources are active.");
210 }
211
212 DbgUI.End();
213 DbgUI.EndCleanupScope();
214 }
const int BIT_INT_SIZE
Определения BitArray.c:4
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
int GetInvLocation()
Определения BleedingSourceZone.c:31
BleedingSourceZone GetBleedingSourceMeta(int bit)
Определения BleedingSourcesManagerBase.c:127
string GetSelectionNameFromBit(int bit)
Определения BleedingSourcesManagerBase.c:189

Перекрестные ссылки DbgUI::Begin(), DbgUI::BeginCleanupScope(), BIT_INT_SIZE, DbgUI::End(), DbgUI::EndCleanupScope(), GetBleedingSourceMeta(), BleedingSourceZone::GetInvLocation(), GetSelectionNameFromBit(), InventorySlots::GetSlotName(), m_BleedingBits, m_ShowingDiag, name, Math::Pow() и DbgUI::Text().

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