MerlinofMines / EasyCommands

Github Repository for Ingame Scripts built by MerlinofMines. Uses MDK to Deploy to SpaceEngineerse
GNU General Public License v3.0
8 stars 3 forks source link

Add multi word property support #244

Closed MerlinofMines closed 2 years ago

MerlinofMines commented 2 years ago

This PR builds on #224 to add multi-word property support. Firstly, property support has been revamped so that property suppliers now accept a list of property values instead of just one. The processing rules for properties has also been updated to accept lists of property values, both for selector properties and for block conditions.

Additionally, some keywords such as "to" have been broken out to a new command separator parameter type, to help ensure that selector properties are properly associated with their intended selectors, e.g:

set "My Piston" height to the upper limit of "My Beacon 2"

Using the new multi-word property support, several new properties have been added or adjusted.

This commit also adds some missing tests for some block handlers, and adds some missing test coverage around block conditions.

This commit resolves #175 and #176 by adding property support for these attributes using the new property support.