vkmEngine 1.0.15
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
character_controller_system.h
1#pragma once
2
3#include "core/system.h"
4#include "debug/fault_latch.h"
5
6namespace Vkm::Engine {
7
15class CharacterControllerSystem : public System {
16 public:
17 CharacterControllerSystem() = default;
18 ~CharacterControllerSystem() override = default;
19
20 CharacterControllerSystem(const CharacterControllerSystem& other) = delete;
21 CharacterControllerSystem& operator=(const CharacterControllerSystem& other) = delete;
22
23 CharacterControllerSystem(CharacterControllerSystem && other) = delete;
24 CharacterControllerSystem& operator=(CharacterControllerSystem && other) = delete;
25
26 public:
27 void fixedUpdate(FrameContext& ctx) override;
28
34 bool isReplayed() const override { return true; }
35
36 private:
37 FaultLatch m_noCapsule;
38 FaultLatch m_spinnable;
39};
40
41} // namespace Vkm::Engine
void fixedUpdate(FrameContext &ctx) override
Execute this system at the fixed simulation rate.
bool isReplayed() const override
Re-run during a replay: it moves the world from state and command, deterministically.
Definition character_controller_system.h:34
Names a recurring fault once per gap rather than once a frame.
Definition fault_latch.h:11
Per-frame state bundle passed to every system.
Definition system.h:57