summaryrefslogtreecommitdiffstats
path: root/src/Simulator/NoopRedstoneSimulator.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-06-18Additional Y height checks (#5405)Debucquoy Anthony tonitch1-2/+8
For redstone wire, block area bindings, and fire simulator. Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-08-02Always use relative coordinates in AddBlockTiger Wang1-8/+0
+ 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/+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
2020-07-26Use SimulateChunk in redstone simulatorTiger Wang1-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
2020-04-16Using Super.Mattes D1-4/+5
2017-08-17Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly1-4/+2
2016-02-05Bulk clearing of whitespaceLogicParrot1-1/+1
2015-12-18Reorganised the redstone simulatorTiger Wang1-2/+0
-> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved
2015-01-11Initial convertion of a_Dt to std::chronoTycho1-1/+1
also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
2014-10-25Cleaned up simulatorsTiger Wang1-2/+2
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-1/+1
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-1/+1
2014-09-28Use factory method to construct redstone simulator dataTycho1-0/+5
2014-09-11Possibly decoupled IncrementalRedstoneSimulator from the rest of the serverTycho1-2/+2
THis wil hopefully allow for unit testing
2014-07-21Style: Normalized to no spaces before closing parenthesis.madmaxoft1-1/+1
2014-07-17Basic style fixes.madmaxoft1-1/+1
2014-07-17Normalized comments.madmaxoft1-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.
2014-02-07Renamed cRedstoneManager to cRedstoneSimulator and renamed cRedstoneSimulator to cIncrementalRedstoneSimulator (Might change later).STRWarrior1-3/+3
2014-02-07Fixed some end of linesSTRWarrior1-1/+1
2014-02-07Implemented an easy way of adding new redstone simulators.STRWarrior1-0/+40
Also added a "noop" redstone simulator that does the same as the fluid version.