summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator/RedstoneSimulatorChunkData.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-09-12Use tracing for explosions (#4845)Tiger Wang1-2/+1
* TNT: Implement tracing algorithm + Add intensity tracing * Fix iterating over all players to SendExplosion, even those not in range * Implemented TNT entity interaction * Fixed misaligned destruction tracing * Finalise TNT algorithm - Remove BlockArea and just use chunks Using SetBlock makes it so that we can update everything properly, and does appear to be faster. * BlockInfo learns about explosion attentuation * Rename Explodinator parameters * TNT: pull block destruction into common function Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-08-21Replace PowerData struct with PowerLevelTiger Wang1-50/+17
* We no longer need to track the powering block with the removal of SolidBlockHandler. PowerLevel is now just an unsigned char
2020-08-08Remove the redstone solid block handlerTiger Wang1-3/+8
- 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-07-26Clang Tidy fixTiger Wang1-11/+11
2020-07-26Use SimulateChunk in redstone simulatorTiger Wang1-23/+82
+ 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-07-19Precompile unordered_map/setTiger Wang1-1/+0
+ Add inclusions to Globals.h * Sort Globals.h - Remove sys/stat.h from Globals.h
2020-04-17Fixing washing away of redstone mechanisms (#4665)DrButcher1-0/+1
2018-07-25At long last... Piston animations!Tiger Wang1-1/+0
* Fixes #3198 * Fixes #57 (again lol)
2017-08-03Remove double includes part 2 (#3890)peterbell101-1/+0
2016-02-09Update RedstoneSimulator to delete unused cached PowerDataMarvin Kopf1-0/+6
When a new block was placed that has a corresponding RedstoneHandler the PowerData for the position was cached, but never deleted and remained unchanged when the block got destroyed. The RedstoneSimulator now erases all cached PowerData for positions where the block doesn't have a RedstoneHandler (i.e. Air).
2015-12-18Reorganised the redstone simulatorTiger Wang1-0/+70
-> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved