summaryrefslogtreecommitdiffstats
path: root/src/Simulator/NoopRedstoneSimulator.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Additional Y height checks (#5405)Debucquoy Anthony tonitch2022-06-181-2/+8
| | | | | For redstone wire, block area bindings, and fire simulator. Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Always use relative coordinates in AddBlockTiger Wang2020-08-021-8/+0
| | | | | + 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/+1
| | | | | | * 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-1/+1
| | | | | | + 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
* Using Super.Mattes D2020-04-161-4/+5
|
* Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly2017-08-171-4/+2
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-1/+1
|
* Reorganised the redstone simulatorTiger Wang2015-12-181-2/+0
| | | | | | -> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-1/+1
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* Cleaned up simulatorsTiger Wang2014-10-251-2/+2
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-1/+1
|
* Use factory method to construct redstone simulator dataTycho2014-09-281-0/+5
|
* Possibly decoupled IncrementalRedstoneSimulator from the rest of the serverTycho2014-09-111-2/+2
| | | | THis wil hopefully allow for unit testing
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-1/+1
|
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Normalized comments.madmaxoft2014-07-171-1/+1
| | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
* Renamed cRedstoneManager to cRedstoneSimulator and renamed cRedstoneSimulator to cIncrementalRedstoneSimulator (Might change later).STRWarrior2014-02-071-3/+3
|
* Fixed some end of linesSTRWarrior2014-02-071-1/+1
|
* Implemented an easy way of adding new redstone simulators.STRWarrior2014-02-071-0/+40
Also added a "noop" redstone simulator that does the same as the fluid version.