|
group2 0.1.0
CSE 125 Group 2
|
Classes | |
| struct | TriggerEvent |
| One trigger-overlap event. More... | |
Enumerations | |
| enum class | TriggerEventType : uint8_t { Enter , Stay , Exit } |
| Kind of contact event. More... | |
Functions | |
| void | beginTick () noexcept |
| Start a fresh per-tick event window. | |
| void | pushTriggerEvent (const TriggerEvent &e) noexcept |
| Append a trigger event to the current tick's queue. | |
| std::span< const TriggerEvent > | triggerEvents () noexcept |
| Read-only snapshot of all events emitted since beginTick(). | |
|
strong |
|
noexcept |
Start a fresh per-tick event window.
Clears the global front buffer and drains every thread-local writer buffer. Must be called once per tick on the main thread BEFORE the trigger / contact systems run. Calling concurrently with pushTriggerEvent is UB.
|
noexcept |
Append a trigger event to the current tick's queue.
Thread-safe (per-thread buffer; no locking on the hot path).
|
nodiscardnoexcept |
Read-only snapshot of all events emitted since beginTick().
Stable until the next beginTick().