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
31 ::ll::TypedStorage<1, 1, bool> mOn;
32 ::ll::TypedStorage<1, 1, bool> mHalfFrame;
33 ::ll::TypedStorage<1, 1, bool> mChanged;
34 // NOLINTEND
35 };
36
37public:
38 // member variables
39 // NOLINTBEGIN
40 ::ll::TypedStorage<8, 8, ::RedstoneTorchCapacitor*> mNextOrder;
41 ::ll::TypedStorage<4, 4, int> mSelfPowerCount;
42 ::ll::TypedStorage<1, 6, ::RedstoneTorchCapacitor::State[2]> mState;
43 ::ll::TypedStorage<1, 1, bool> mCanReigniteFromBurnout;
44 ::ll::TypedStorage<8, 8, ::CircuitComponentType const> mCircuitComponentType;
45 // NOLINTEND
46
47public:
48 // virtual functions
49 // NOLINTBEGIN
50 // vIndex: 0
51 virtual ~RedstoneTorchCapacitor() /*override*/ = default;
52
53 // vIndex: 26
54 virtual uchar getPoweroutDirection() const /*override*/;
55
56 // vIndex: 12
57 virtual bool
58 allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered) /*override*/;
59
60 // vIndex: 11
61 virtual bool addSource(
62 ::CircuitSceneGraph& graph,
63 ::CircuitTrackingInfo const& info,
64 int& dampening,
65 bool& bDirectlyPowered
66 ) /*override*/;
67
68 // vIndex: 10
69 virtual void removeSource(::BlockPos const& posSource, ::BaseCircuitComponent const* pComponent) /*override*/;
70
71 // vIndex: 14
72 virtual bool evaluate(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
73
74 // vIndex: 15
75 virtual void cacheValues(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
76
77 // vIndex: 1
78 virtual int getStrength() const /*override*/;
79
80 // vIndex: 19
81 virtual bool isHalfPulse() const /*override*/;
82
83 // vIndex: 24
84 virtual ::CircuitComponentType getCircuitComponentType() const /*override*/;
85
86 // vIndex: 17
87 virtual ::RedstoneLogicExecutionFlags getLogicExecutionFlags() const /*override*/;
88
89 // vIndex: 16
90 virtual void updateDependencies(::CircuitSceneGraph& system, ::BlockPos const& pos) /*override*/;
91 // NOLINTEND
92
93public:
94 // member functions
95 // NOLINTBEGIN
96 MCAPI int _findStrongestStrength(::BlockPos const& targetPos, ::CircuitSystem&, bool& bPowerFromSelf);
97 // NOLINTEND
98
99public:
100 // virtual function thunks
101 // NOLINTBEGIN
102 MCFOLD uchar $getPoweroutDirection() const;
103
104 MCAPI bool $allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered);
105
106 MCAPI bool
107 $addSource(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, int& dampening, bool& bDirectlyPowered);
108
109 MCAPI void $removeSource(::BlockPos const& posSource, ::BaseCircuitComponent const* pComponent);
110
111 MCAPI bool $evaluate(::CircuitSystem& system, ::BlockPos const& pos);
112
113 MCAPI void $cacheValues(::CircuitSystem& system, ::BlockPos const& pos);
114
115 MCAPI int $getStrength() const;
116
117 MCAPI bool $isHalfPulse() const;
118
119 MCAPI ::CircuitComponentType $getCircuitComponentType() const;
120
121 MCFOLD ::RedstoneLogicExecutionFlags $getLogicExecutionFlags() const;
122
123 MCAPI void $updateDependencies(::CircuitSceneGraph& system, ::BlockPos const& pos);
124 // NOLINTEND
125
126public:
127 // vftables
128 // NOLINTBEGIN
129 MCAPI static void** $vftable();
130 // NOLINTEND
131};
Definition BaseCircuitComponent.h:19
Definition BlockPos.h:17
Definition CapacitorComponent.h:9
Definition CircuitSceneGraph.h:18
Definition CircuitSystem.h:15
Definition CircuitTrackingInfo.h:14
Definition RedstoneTorchCapacitor.h:19
Definition RedstoneTorchCapacitor.h:27