Anaminus / rbxmk

A tool for processing Roblox files.
MIT License
109 stars 11 forks source link

Support BaseScript.RunContext #73

Open Anaminus opened 2 years ago

Anaminus commented 2 years ago

Repurpose script format aliases to use RunContext instead (lua and luau):

Format Class (RunContext)
server.lua Script (Server)
client.lua Script (Client)
plugin.lua Script (Plugin)
script.lua Script (Legacy)
localscript.lua LocalScript
lua ModuleScript
modulescript.lua ModuleScript

A potential way to handle backward-compatibility could be to have legacy behavior for lua formats, and new behavior for luau formats:

Format Class (RunContext)
server.lua Script (Legacy)
client.lua LocalScript
plugin.lua Script (Legacy)
script.lua Script (Legacy)
localscript.lua LocalScript
lua ModuleScript
modulescript.lua ModuleScript
server.luau Script (Server)
client.luau Script (Client)
plugin.luau Script (Plugin)
script.luau Script (Legacy)
localscript.luau LocalScript
luau ModuleScript
modulescript.luau ModuleScript

References: