22 Commits

Author SHA1 Message Date
Dylan K. Taylor
4d55935bd8
Replace disallowed operators in tools/ 2022-01-20 16:48:06 +00:00
Dylan K. Taylor
7a385ddc8b
simulate-chunk-selector: remove unused colour allocation 2021-12-08 20:04:03 +00:00
Dylan K. Taylor
2254f31bec
Use Utils::assumeNotFalse() in tools/ 2021-12-08 20:01:19 +00:00
Dylan K. Taylor
300d194185
CS again 2021-12-05 01:09:03 +00:00
Dylan K. Taylor
13340a21d3
fix CS 2021-12-05 01:01:16 +00:00
Dylan K. Taylor
27f599793a
tools: added old-but-gold server-ping.php 2021-12-05 01:00:24 +00:00
Dylan K. Taylor
269231c228
Ban foreach(arrayWithStringKeys as k => v)
this is not as good as phpstan/phpstan-src#769 (e.g. array_key_first()/array_key_last() aren't covered by this, nor is array_rand()) but it does eliminate the most infuriating cases where this usually crops up.
2021-11-15 22:52:05 +00:00
Dylan K. Taylor
8abc952c74
simulate-chunk-selector: do not reallocate colours on every frame 2021-11-04 19:38:40 +00:00
Dylan K. Taylor
4f8501ff34
Added a tool to visualise behaviour of ChunkSelector
I actually intended to write a tool for debugging generation, but it turns out this, as an intermediary step, is also useful and a whole bunch of fun to play with.
2021-11-04 14:14:55 +00:00
Dylan K. Taylor
a794d24c81
Added a tool to generate a Markdown document of all core permissions 2021-10-17 17:02:18 +01:00
Dylan K. Taylor
43b2e1a0e8
tools/convert-world: improve error messages and exit codes
die with a string exits with zero? wtf?
2021-09-16 15:28:20 +01:00
Dylan K. Taylor
4b06e19d28
Cover tools/ in php-cs-fixer 2021-08-29 23:33:07 +01:00
Dylan K. Taylor
ee8b854f30
Add tools/ to PHPStan analysis 2021-08-29 23:31:24 +01:00
Dylan K. Taylor
533b0d0724
Updated convert-world CLI tool 2021-08-29 21:04:59 +01:00
Dylan K. Taylor
5d83f4670a
RegionLoader: Switch to using named constructors
this makes the code more self-descriptive, and also helps to detect potential bugs.
2021-04-15 21:57:23 +01:00
Dylan K. Taylor
32c4a165cf
Removed RegionLoader::open()
this is nothing but a source of bugs.
2021-04-15 15:38:18 +01:00
Dylan K. Taylor
4bf40df770 tools: added a script to remove garbage from region files 2020-05-31 15:10:28 +01:00
Dylan K. Taylor
c93038f574 Inject WorldProviderManager to WorldManager's constructor, no longer singleton 2020-05-24 19:22:04 +01:00
Dylan K. Taylor
c9af5ce7a9 Convert GeneratorManager to singleton 2020-05-23 10:13:03 +01:00
Dylan K. Taylor
640428c415 Convert WorldProviderManager to singleton 2020-05-23 10:02:09 +01:00
Dylan K. Taylor
1df345ba6f tools/convert-world: do not redefine RESOURCE_PATH
this is now defined automatically when including the autoloader.
2020-04-24 20:55:57 +01:00
Dylan K. Taylor
1de5d35dfc add a CLI tool for conversion 2019-08-26 19:03:48 +01:00