55 std::optional<PlayerInput> _rewritten;
A multicast signal with a fixed handler signature: the one way to subscribe in VoltMod.
An engine hook that exists only while one of its events has handlers.
Movement(const Bindings &bindings, Connector connect)
Event< int, const PlayerInput & > Before
Event< int, PlayerInput & > Rewrite
void BeforeCommand(int slot, const PlayerInput &input)
Event< int, const PlayerInput & > After
Movement(const Movement &)=delete
std::function< Subscription(Movement &)> Connector
void AfterCommand(int slot, const PlayerInput &input)
Movement & operator=(const Movement &)=delete
Owns one registration and releases it on destruction.
std::expected< void, Error > Status
std::expected< T, Error > Result