Skip to content

Commit

Permalink
chore: remove some wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Jan 3, 2025
1 parent a09ef31 commit fdfc731
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
16 changes: 8 additions & 8 deletions src/mc/world/redstone/circuit/CircuitSceneGraph.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/world/level/BlockPos.h"

// auto generated inclusion list
#include "mc/world/redstone/circuit/components/CircuitComponentType.h"
Expand Down Expand Up @@ -54,14 +55,13 @@ class CircuitSceneGraph {
public:
// member variables
// NOLINTBEGIN
::ll::TypedStorage<8, 64, ::std::unordered_map<::BlockPos, ::std::unique_ptr<::BaseCircuitComponent>>>
mAllComponents;
::ll::TypedStorage<8, 64, ::std::unordered_map<::BlockPos, ::ChunkCircuitComponentList>> mActiveComponentsPerChunk;
::ll::TypedStorage<8, 64, ::std::unordered_map<::BlockPos, ::CircuitComponentList>> mPowerAssociationMap;
::ll::TypedStorage<8, 64, ::std::unordered_map<::BlockPos, ::CircuitSceneGraph::PendingEntry>> mPendingAdds;
::ll::TypedStorage<8, 64, ::std::unordered_map<::BlockPos, ::CircuitSceneGraph::PendingEntry>> mPendingUpdates;
::ll::TypedStorage<8, 64, ::std::unordered_map<::BlockPos, ::std::vector<::BlockPos>>> mComponentsToReEvaluate;
::ll::TypedStorage<8, 24, ::std::vector<::CircuitSceneGraph::PendingEntry>> mPendingRemoves;
ComponentMap mAllComponents;
ComponentsPerChunkMap mActiveComponentsPerChunk;
ComponentsPerPosMap mPowerAssociationMap;
::std::unordered_map<::BlockPos, ::CircuitSceneGraph::PendingEntry> mPendingAdds;
::std::unordered_map<::BlockPos, ::CircuitSceneGraph::PendingEntry> mPendingUpdates;
::std::unordered_map<::BlockPos, ::std::vector<::BlockPos>> mComponentsToReEvaluate;
::std::vector<::CircuitSceneGraph::PendingEntry> mPendingRemoves;
// NOLINTEND

public:
Expand Down
15 changes: 8 additions & 7 deletions src/mc/world/redstone/circuit/components/CircuitComponentList.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/world/level/BlockPos.h"

// auto generated forward declare list
// clang-format off
Expand All @@ -20,19 +21,19 @@ class CircuitComponentList {
public:
// member variables
// NOLINTBEGIN
::ll::TypedStorage<8, 8, ::BaseCircuitComponent*> mComponent;
::ll::TypedStorage<4, 4, int> mDampening;
::ll::TypedStorage<4, 12, ::BlockPos> mPos;
::ll::TypedStorage<1, 1, uchar> mDirection;
::ll::TypedStorage<1, 1, bool> mDirectlyPowered;
::ll::TypedStorage<4, 4, int> mData;
::BaseCircuitComponent* mComponent;
int mDampening;
::BlockPos mPos;
uchar mDirection;
bool mDirectlyPowered;
int mData;
// NOLINTEND
};

public:
// member variables
// NOLINTBEGIN
::ll::TypedStorage<8, 24, ::std::vector<::CircuitComponentList::Item>> mComponents;
::std::vector<::CircuitComponentList::Item> mComponents;
// NOLINTEND

public:
Expand Down

0 comments on commit fdfc731

Please sign in to comment.