3 Commits
Author SHA1 Message Date
DrSmugleafandGitHub a3752760c0 Make ToolshedCommand not a downgrade of LocalizedCommands (#6924)
* Make ToolshedCommand not a downgrade of LocalizedCommands

* Small typo mistake

* Update test

* Release notes
2026-08-23 07:41:38 +00:00
dcde669baa [Toolshed] Array parsing (#6864)
* Add parsing for arrays of values via ValueArray<T>.

* oops forgot command description

* add valarr to engine toolshed perms, fix stupidness, remove useless code in parser

* make optional not suck

* support for skipping optional parameters

* Switch to List<T> because I'm dumb and that just works™

* remove optional stuff to separate into its own PR

* Remove ValArr command

`valarr int [ 1, 2 ]` can just be replaced with ` val List<int> [ 1, 2 ]` or ` val int[] [ 1, 2 ]`

* Fix namespace

* Add support for array parsing

* Make ListTypeParser output nullable

* Pass ListLengthAttribute in the CommandArgument struct

The current method of trying to fetch the attribute for argument doesn't actually work. i.e., the argIndex calculation isn't always correct. This is still kinda janky and I hate it, but it should work better.

* Fix empty list parsing, add tests

* rename flag, and clarify description

* More tests

---------

Co-authored-by: ElectroJr <leonsfriedrich@gmail.com>
2026-08-22 21:29:33 +00:00
PJB3005 788e9386fd Split up test project
Robust.UnitTesting was both ALL tests for RT, and also API surface for content tests.

Tests are now split into separate projects as appropriate, and the API side has also been split off.
2025-12-16 01:36:53 +01:00