stevehalliwell / ulox

A bytecode interpreted scripting language for games in Unity.
MIT License
24 stars 0 forks source link

Build string path glob #191

Closed stevehalliwell closed 1 year ago

stevehalliwell commented 1 year ago

Presently you have to list every file fully. It would be nice to be able to do

build "ulox/systems/*.ulox";

and have it queue up all files in that folder in filesystem alpha numeric order. Or

build "ulox/**/*.ulox";

to locate all uloxs underneath ulox folder at any depth.

stevehalliwell commented 1 year ago

potentially the more straight forward way is not to make build special but to make file searches easy and then do

var filesFound = FindFiles("ulox/systems/*.ulox");

loop filesFound
{
    build item;
}

this then relates to #78