Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OGSR/OGSR-Engine
/ population
Function
population
ogsr_engine/xrGame/agent_enemy_manager.cpp:30–34 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
28
const float wounded_enemy_reached_distance = 3.f;
29
30
IC u32 population(const squad_mask_type& b)
31
{
32
std::bitset<std::numeric_limits<squad_mask_type>::digits> mask(b);
33
return mask.count();
34
}
35
36
struct CEnemyFiller
37
{
Callers
1
assign_wounded
Method · 0.85
Calls
1
count
Method · 0.45
Tested by
no test coverage detected