Skript icon indicating copy to clipboard operation
Skript copied to clipboard

PropExprElements

Open Absolutionism opened this issue 3 months ago • 1 comments

Problem

There is no way for addons to be able to use container objects, such as SkriptQueue, and to to be used in ExprElements.

Solution

Adds a property handler, ElementHandler, allowing to get elements from an object, with either a specific index or a range. Adds a property, ELEMENTS, that is used on SkriptQueue Adds a property handler, ReturnablePropertyHandler that pulls out 'returnType' and 'possibleReturnTypes' from 'ExpressionPropertyHandler' 'ExpressionPropertyHandler' and 'ElementHandler' extend 'ReturnablePropertyHandler' Pulls out 'getPropertyReturnTypes' from 'PropertyBaseExpression' to 'PropertyBaseSyntax', Adds an additional 'getPropertyReturnTypes' for a handler extending 'ReturnablePropertyHandler'

Adds PropExprElements that is a property version of ExprElements.

Testing Completed

quickTest

Supporting Information

N/A

Note PR currently fails due to pattern conflicts from property syntax elements. This PR will stay in draft until properties are officially released in 2.14


Completes: none Related: none

Absolutionism avatar Oct 28 '25 19:10 Absolutionism

Haven't looked at code, but I would like the property to be called ORDERED_ELEMENTS as some things could have elements without ordered access.

Actually maybe order implies sorting, idk. Something that makes it clear you can access elements by index.

sovdeeth avatar Oct 28 '25 22:10 sovdeeth