forked from rojo-rbx/rojo
Add RunContext support for script outputs (#765)
Resolves #667 This PR: - Introduces a new field in the project file: `scriptType` which has the default value of `Class` (in parity with previous versions), but can also be `RunContext`. - This is then passed to `InstanceContext` from the `Project` struct. - This then changes the RunContext in the lua `snapshot_middleware` --------- Co-authored-by: Micah <dekkonot@rocketmail.com>
This commit is contained in:
13
rojo-test/build-tests/nested_runcontext/default.project.json
Normal file
13
rojo-test/build-tests/nested_runcontext/default.project.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "nested_runcontext",
|
||||
"emitLegacyScripts": false,
|
||||
"tree": {
|
||||
"$className": "Folder",
|
||||
"folder1": {
|
||||
"$path": "folder1"
|
||||
},
|
||||
"folder2": {
|
||||
"$path": "folder2"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user