10 template<
typename TypesTuple>
11 std::shared_ptr<Message> AutomaticMessageFactory(
const int id)
13 std::shared_ptr<Message> output =
nullptr;
15 Internal::loop<std::tuple_size_v<TypesTuple>>([&](
auto i) {
18 output = std::make_shared<std::tuple_element_t<i, TypesTuple>>();
31 return AutomaticMessageFactory<AllClientboundLoginMessages>(
id);
33 return AutomaticMessageFactory<AllClientboundStatusMessages>(
id);
35 return AutomaticMessageFactory<AllClientboundPlayMessages>(
id);
36#if PROTOCOL_VERSION > 763
38 return AutomaticMessageFactory<AllClientboundConfigurationMessages>(
id);
50 return AutomaticMessageFactory<AllServerboundHandshakingMessages>(
id);
52 return AutomaticMessageFactory<AllServerboundLoginMessages>(
id);
54 return AutomaticMessageFactory<AllServerboundStatusMessages>(
id);
56 return AutomaticMessageFactory<AllServerboundPlayMessages>(
id);
57#if PROTOCOL_VERSION > 763
59 return AutomaticMessageFactory<AllServerboundConfigurationMessages>(
id);
std::shared_ptr< Message > CreateServerboundMessage(const ConnectionState state, const int id)
std::shared_ptr< Message > CreateClientboundMessage(const ConnectionState state, const int id)