|
group2 0.1.0
CSE 125 Group 2
|
Weapon spawner manager system. More...
#include "WeaponSpawnerSystem.hpp"#include "ecs/components/CollisionShape.hpp"#include "ecs/components/GrenadeConfig.hpp"#include "ecs/components/GrenadeState.hpp"#include "ecs/components/InputSnapshot.hpp"#include "ecs/components/Player.hpp"#include "ecs/components/PlayerVisState.hpp"#include "ecs/components/Position.hpp"#include "ecs/components/WeaponConfig.hpp"#include "ecs/components/WeaponSpawner.hpp"#include "ecs/registry/Registry.hpp"#include "ecs/systems/DroppedWeaponSystem.hpp"#include "ecs/systems/PickupGeometry.hpp"#include "entt/entity/entity.hpp"#include <cmath>#include <vector>Namespaces | |
| namespace | systems |
| Client-only input sampling system — split into two halves so mouse look can run every iterate() (smooth camera at any FPS) while movement keys run once per physics tick group (server-consistent). | |
Functions | |
| void | systems::checkForPlayers (Registry ®istry, Position spawnerPos, CollisionShape spawnerShape, WeaponSpawner &spawner, std::vector< PendingWeaponDrop > &pendingDrops) |
| Check if any player overlaps the spawner and transfer the weapon on pickup. | |
| void | systems::runWeaponSpawners (Registry ®istry, float dt) |
| Tick weapon spawners: check player overlap for pickup, manage cooldowns. | |
Weapon spawner manager system.