summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator/IncrementalRedstoneSimulator.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move some redstone implementations into the source fileTiger Wang2021-03-281-84/+6
|
* Unify DoWithBlockEntity (#5168)Tiger Wang2021-03-281-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
* New pull request for daylight sensor (#5066)Aiden Neill2020-12-191-0/+2
| | | | | * Fixes #4918 Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell102020-10-051-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>
* Remove std::make_unique from redstone handler creationTiger Wang2020-08-211-7/+0
|
* Remove the redstone solid block handlerTiger Wang2020-08-081-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
* Do not GetBlock individually in simulatorsTiger Wang2020-08-041-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
* Always use relative coordinates in AddBlockTiger Wang2020-08-021-21/+15
| | | | | + Pass block, use relatives * Fixes everything immediately converting abs back to rel and getting block, when these data were already available
* Add WakeUp/AddBlock distinctionTiger Wang2020-08-021-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
* Use SimulateChunk in redstone simulatorTiger Wang2020-07-261-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
* ಠ_ಠ (#4660)Tiger Wang2020-04-161-0/+2
| | | + Provisional handling for observers
* Using Super.Mattes D2020-04-161-4/+6
|
* Filter blocks to add to redstone sim's wake queue (#4621)peterbell102020-04-051-4/+1
|
* Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly2017-08-171-2/+2
|
* Allocate redstone component handlers upfrontpeterbell102017-07-171-1/+4
|
* Revert "Made redstone handlers static"Lukas Pioch2016-07-011-3/+1
|
* Made redstone handlers staticTiger Wang2016-05-281-1/+3
| | | | * Improvements to performance? Maybe. Can't hurt (he says).
* Bulk clearing of whitespaceLogicParrot2016-02-051-2/+2
|
* Reorganised the redstone simulatorTiger Wang2015-12-181-0/+167
-> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved