File PlayerInputState.hpp¶
File List > Engine > include > Resources > PlayerInputState.hpp
Go to the documentation of this file
#ifndef ENGINE_RESOURCES_PLAYERINPUTSTATE_HPP_
#define ENGINE_RESOURCES_PLAYERINPUTSTATE_HPP_
#include "Inputs/IController.hpp"
#include <cstddef>
#include <cstdint>
#include <set>
#include <unordered_map>
namespace Engine::Multiplayer {
struct PlayerInputState {
std::unordered_map<std::size_t, std::set<Action>> byNetworkId;
std::unordered_map<std::size_t, std::uint32_t> lastSeq;
std::unordered_map<Action, ScriptComponent> keyHandlers;
};
} // namespace Engine::Multiplayer
#endif // ENGINE_RESOURCES_PLAYERINPUTSTATE_HPP_