MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / UpdateNeighbors

Method UpdateNeighbors

TombEngine/Game/effects/Decal.cpp:14–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 std::vector<Decal> Decals;
13
14 void Decal::UpdateNeighbors()
15 {
16 Neighbors.fill(NO_VALUE);
17
18 int neighborCount = 0;
19 for (int i : g_Level.Rooms[RoomNumber].NeighborRoomNumbers)
20 {
21 if (g_Level.Rooms[i].Aabb.Intersects(Sphere))
22 {
23 Neighbors[neighborCount] = i;
24 neighborCount++;
25 }
26
27 if (neighborCount >= Neighbors.size())
28 break;
29 }
30 }
31
32 void SpawnDecal(Vector3 pos, int roomNumber, DecalType type)
33 {

Callers 2

ParseEffectsFunction · 0.80
SpawnDecalFunction · 0.80

Calls 2

IntersectsMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected