MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Update

Method Update

ogsr_engine/xrGame/ui/UIPdaContactsWnd.cpp:81–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void CUIPdaContactsWnd::Update()
82{
83 if (TRUE == m_flags.test(flNeedUpdate))
84 {
85 RemoveAll();
86
87 CPda* pPda = Actor()->GetPDA();
88 if (!pPda)
89 return;
90
91 const auto m_pda_list = pPda->ActivePDAContacts();
92
93 for (const auto& [id, pda] : m_pda_list)
94 AddContact(pda, id);
95
96 m_flags.set(flNeedUpdate, FALSE);
97 }
98 inherited::Update();
99}
100
101void CUIPdaContactsWnd::AddContact(CPda* pda, u16 owner_id)
102{

Callers

nothing calls this directly

Calls 6

ActorFunction · 0.85
UpdateFunction · 0.85
GetPDAMethod · 0.80
ActivePDAContactsMethod · 0.80
testMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected