Selectors
Selectors are a pattern matching allowing the selection of a Tile, an Item, or an Entity with criterias.
It needs to allow the following:
- matching a variable of the element (Name, Position, Count...)
- matching the values of a component (Hp, Inventory...)
- allow multiple operators: = < >...
- be used inside Lua data
- Allow to select parts of the data to analyse/use later
Some examples of use:
- changing texture based on the number of item in a stack
- crafting multiple items and keeping their data
Edited by Rexmine