LeviLamina
Loading...
Searching...
No Matches
RedstoneTorchCapacitor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/redstone/circuit/components/CapacitorComponent.h"
7#include "mc/world/redstone/circuit/components/CircuitComponentType.h"
8#include "mc/world/redstone/circuit/components/RedstoneLogicExecutionFlags.h"
9
10// auto generated forward declare list
11// clang-format off
13class BlockPos;
15class CircuitSystem;
17// clang-format on
18
20public:
21 // RedstoneTorchCapacitor inner types declare
22 // clang-format off
23 struct State;
24 // clang-format on
25
26 // RedstoneTorchCapacitor inner types define
27 struct State {
28 public:
29 // member variables
30 // NOLINTBEGIN
34 // NOLINTEND
35
36 public:
37 // prevent constructor by default
38 State& operator=(State const&);
39 State(State const&);
40 State();
41 };
42
43public:
44 // member variables
45 // NOLINTBEGIN
46 ::ll::TypedStorage<8, 8, ::RedstoneTorchCapacitor*> mNextOrder;
47 ::ll::TypedStorage<4, 4, int> mSelfPowerCount;
48 ::ll::TypedStorage<1, 6, ::RedstoneTorchCapacitor::State[2]> mState;
49 ::ll::TypedStorage<1, 1, bool> mCanReigniteFromBurnout;
50 ::ll::TypedStorage<8, 8, ::CircuitComponentType const> mCircuitComponentType;
51 // NOLINTEND
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 // vIndex: 0
57 virtual ~RedstoneTorchCapacitor() /*override*/ = default;
58
59 // vIndex: 26
60 virtual uchar getPoweroutDirection() const /*override*/;
61
62 // vIndex: 12
63 virtual bool
64 allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered) /*override*/;
65
66 // vIndex: 11
67 virtual bool addSource(
68 ::CircuitSceneGraph& graph,
69 ::CircuitTrackingInfo const& info,
70 int& dampening,
71 bool& bDirectlyPowered
72 ) /*override*/;
73
74 // vIndex: 10
75 virtual void removeSource(::BlockPos const& posSource, ::BaseCircuitComponent const* pComponent) /*override*/;
76
77 // vIndex: 14
78 virtual bool evaluate(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
79
80 // vIndex: 15
81 virtual void cacheValues(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
82
83 // vIndex: 1
84 virtual int getStrength() const /*override*/;
85
86 // vIndex: 19
87 virtual bool isHalfPulse() const /*override*/;
88
89 // vIndex: 24
90 virtual ::CircuitComponentType getCircuitComponentType() const /*override*/;
91
92 // vIndex: 17
93 virtual ::RedstoneLogicExecutionFlags getLogicExecutionFlags() const /*override*/;
94
95 // vIndex: 16
96 virtual void updateDependencies(::CircuitSceneGraph& system, ::BlockPos const& pos) /*override*/;
97 // NOLINTEND
98
99public:
100 // member functions
101 // NOLINTBEGIN
102 MCNAPI int _findStrongestStrength(::BlockPos const& targetPos, ::CircuitSystem&, bool& bPowerFromSelf);
103 // NOLINTEND
104
105public:
106 // virtual function thunks
107 // NOLINTBEGIN
108 MCNAPI uchar $getPoweroutDirection() const;
109
110 MCNAPI bool $allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered);
111
112 MCNAPI bool
113 $addSource(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, int& dampening, bool& bDirectlyPowered);
114
115 MCNAPI void $removeSource(::BlockPos const& posSource, ::BaseCircuitComponent const* pComponent);
116
117 MCNAPI bool $evaluate(::CircuitSystem& system, ::BlockPos const& pos);
118
119 MCNAPI void $cacheValues(::CircuitSystem& system, ::BlockPos const& pos);
120
121 MCNAPI int $getStrength() const;
122
123 MCNAPI bool $isHalfPulse() const;
124
125 MCNAPI ::CircuitComponentType $getCircuitComponentType() const;
126
127 MCNAPI ::RedstoneLogicExecutionFlags $getLogicExecutionFlags() const;
128
129 MCNAPI void $updateDependencies(::CircuitSceneGraph& system, ::BlockPos const& pos);
130 // NOLINTEND
131
132public:
133 // vftables
134 // NOLINTBEGIN
135 MCNAPI static void** $vftable();
136 // NOLINTEND
137};
Definition BaseCircuitComponent.h:19
Definition BlockPos.h:18
Definition CapacitorComponent.h:9
Definition CircuitSceneGraph.h:19
Definition CircuitSystem.h:15
Definition CircuitTrackingInfo.h:14
Definition RedstoneTorchCapacitor.h:19
MCAPI int $getStrength() const
MCAPI::RedstoneLogicExecutionFlags $getLogicExecutionFlags() const
MCAPI bool $evaluate(::CircuitSystem &system, ::BlockPos const &pos)
MCAPI int _findStrongestStrength(::BlockPos const &targetPos, ::CircuitSystem &, bool &bPowerFromSelf)
MCAPI void $updateDependencies(::CircuitSceneGraph &system, ::BlockPos const &pos)
MCAPI bool $allowConnection(::CircuitSceneGraph &graph, ::CircuitTrackingInfo const &info, bool &bDirectlyPowered)
MCAPI::CircuitComponentType $getCircuitComponentType() const
MCAPI void $removeSource(::BlockPos const &posSource, ::BaseCircuitComponent const *pComponent)
MCAPI bool $addSource(::CircuitSceneGraph &graph, ::CircuitTrackingInfo const &info, int &dampening, bool &bDirectlyPowered)
static MCAPI void ** $vftable()
MCAPI bool $isHalfPulse() const
MCAPI uchar $getPoweroutDirection() const
MCAPI void $cacheValues(::CircuitSystem &system, ::BlockPos const &pos)
Definition RedstoneTorchCapacitor.h:27
Definition Alias.h:14