summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator/IncrementalRedstoneSimulator.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-03-28Move some redstone implementations into the source fileTiger Wang1-84/+6
2021-03-28Unify DoWithBlockEntity (#5168)Tiger Wang1-0/+1
+ DoWith calls now broadcast the block entity and mark the chunk dirty + Add block entity change queue to synchronise BE updates with block updates * Fixed a few incorrect assertions about BE type - Remove manual overloads
2020-12-19New pull request for daylight sensor (#5066)Aiden Neill1-0/+2
* Fixes #4918 Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-10-05Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell101-1/+1
* Fix cmake not adding Werror on clang, and _lots_ of warnings * WIP: Build fixes * Cannot make intermediate blockhandler instance * Tiger's changes * Fix BitIndex check * Handle invalid NextState values in cMultiVersionProtocol Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-08-21Remove std::make_unique from redstone handler creationTiger Wang1-7/+0
2020-08-08Remove the redstone solid block handlerTiger Wang1-52/+2
- Remove cSolidBlockHandler * Functionality now integrated into simulator dispatcher * Fix door double open/close issues, arisen due to the top/bottom halves getting different power + Small migration to block states for redstone wire
2020-08-04Do not GetBlock individually in simulatorsTiger Wang1-1/+2
* Have the simulator manager get the block and pass it on + Add new overload for WakeUp, called when the manager wakes face positions
2020-08-02Always use relative coordinates in AddBlockTiger Wang1-21/+15
+ Pass block, use relatives * Fixes everything immediately converting abs back to rel and getting block, when these data were already available
2020-08-02Add WakeUp/AddBlock distinctionTiger Wang1-1/+5
* WakeUp is for singular changes (block breaking for example). The simulator should check blocks around the position and discover other affected blocks as it sees fit * AddBlock is for when you know a whole area is to be updated; chunk loading, or area wakeups for example + Prepares for correct handling of destroyed blocks after removal of SolidBlockHandler in the redstone simulator
2020-07-26Use SimulateChunk in redstone simulatorTiger Wang1-11/+8
+ Improved performance, reduces bottleneck in chunkmap lookup * Stop allocating and throwing away lots of small vectors in Update/GetValidSourcePositions return values - Remove unused GetPowerLevel virtual
2020-04-16ಠ_ಠ (#4660)Tiger Wang1-0/+2
+ Provisional handling for observers
2020-04-16Using Super.Mattes D1-4/+6
2020-04-05Filter blocks to add to redstone sim's wake queue (#4621)peterbell101-4/+1
2017-08-17Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly1-2/+2
2017-07-17Allocate redstone component handlers upfrontpeterbell101-1/+4
2016-07-01Revert "Made redstone handlers static"Lukas Pioch1-3/+1
2016-05-28Made redstone handlers staticTiger Wang1-1/+3
* Improvements to performance? Maybe. Can't hurt (he says).
2016-02-05Bulk clearing of whitespaceLogicParrot1-2/+2
2015-12-18Reorganised the redstone simulatorTiger Wang1-0/+167
-> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved