Iron-Stag-Games / Lync

Lync is a file sync tool for Roblox.
GNU Lesser General Public License v2.1
27 stars 3 forks source link

Support embedding luau code into YAML files #36

Closed Weldify closed 1 year ago

Weldify commented 1 year ago

Yaml files are neat, but currently you can't define any roblox types or instance paths. I propose a syntax that lets you embed some luau code into yaml:

myVec: @"Vector3.new(1, 2, 3)"

Anything inside @"" is synced as luau code. To use the @ character itself, you should be able to do @@ - this wont count as embed syntax and instead will just result in a @ character.

hoontee commented 1 year ago

This is tricky and inconvenient to implement, so for now, consider instead using modules that return a single table. You will be able to use all Roblox classes and type checking.