LeviLamina
Loading...
Searching...
No Matches
BlockConnectionRuleDescription.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/container/EnumSet.h"
7#include "mc/deps/shared_types/v1_26_20/block/ConnectionType.h"
8#include "mc/deps/shared_types/v1_26_20/block/Direction.h"
9#include "mc/world/level/block/components/ConnectionID.h"
10#include "mc/world/level/block/components/NetworkedBlockComponentDescription.h"
11
12// auto generated forward declare list
13// clang-format off
15namespace cereal { struct ReflectionCtx; }
16// clang-format on
17
18struct BlockConnectionRuleDescription : public ::NetworkedBlockComponentDescription<::BlockConnectionRuleDescription> {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<1, 1, ::Bedrock::EnumSet<::ConnectionID, 4>> mConnectionsFromMask;
23 ::ll::TypedStorage<1, 1, ::SharedTypes::v1_26_20::ConnectionType> mConnectionsFrom;
24 ::ll::TypedStorage<8, 24, ::std::vector<::SharedTypes::v1_26_20::Direction>> mEnabledDirections;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 BlockConnectionRuleDescription();
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual ::std::string const& getName() const /*override*/;
35
36 virtual void initializeComponent(::BlockComponentStorage& blockComponentStorage) const /*override*/;
37
38 virtual void initializeComponentFromCode(::BlockComponentStorage& blockComponentStorage) const /*override*/;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI BlockConnectionRuleDescription(
45 ::Bedrock::EnumSet<::ConnectionID, 4> connectionsFromMask,
46 ::std::vector<::SharedTypes::v1_26_20::Direction> enabledDirections
47 );
48 // NOLINTEND
49
50public:
51 // static functions
52 // NOLINTBEGIN
53 MCAPI static void bindType(::cereal::ReflectionCtx& ctx);
54 // NOLINTEND
55
56public:
57 // static variables
58 // NOLINTBEGIN
59 MCAPI static ::std::
60 unordered_map<::SharedTypes::v1_26_20::ConnectionType, ::Bedrock::EnumSet<::ConnectionID, 4> const> const&
61 CONNECTION_TO_MASK();
62
63 MCAPI static ::std::string const& NameID();
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
69 MCAPI void* $ctor(
70 ::Bedrock::EnumSet<::ConnectionID, 4> connectionsFromMask,
71 ::std::vector<::SharedTypes::v1_26_20::Direction> enabledDirections
72 );
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCAPI ::std::string const& $getName() const;
79
80 MCAPI void $initializeComponent(::BlockComponentStorage& blockComponentStorage) const;
81
82 MCFOLD void $initializeComponentFromCode(::BlockComponentStorage& blockComponentStorage) const;
83
84
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCNAPI static void** $vftable();
91 // NOLINTEND
92};
Definition EnumSet.h:8
Definition BlockComponentStorage.h:63
Definition NetworkedBlockComponentDescription.h:6
static MCAPI void ** $vftable()
Definition ReflectionCtx.h:11
Definition ctx.h:5