| 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 | { |
no test coverage detected