Permalink
Please sign in to comment.
Browse files
Merge pull request #1291 from mc-server/RedstoneCleanUp
Redstone clean up
- Loading branch information...
Showing
with
83 additions
and 21 deletions.
- +7 −4 src/BlockEntities/DropSpenserEntity.h
- +13 −0 src/BlockEntities/NoteEntity.h
- +13 −0 src/BlockEntities/RedstonePoweredEntity.h
- +35 −0 src/Chunk.cpp
- +5 −1 src/Chunk.h
- +10 −16 src/Simulator/IncrementalRedstoneSimulator.cpp
| @@ -0,0 +1,13 @@ | ||
| #pragma once | ||
| // Interface class representing a blockEntity that responds to redstone | ||
| class cRedstonePoweredEntity | ||
| { | ||
| public: | ||
| virtual ~cRedstonePoweredEntity() {}; | ||
| /// Sets the internal redstone power flag to "on" or "off", depending on the parameter. Calls Activate() if appropriate | ||
| virtual void SetRedstonePower(bool a_IsPowered) = 0; | ||
| }; |
0 comments on commit
eae42d9