forked from rojo-rbx/rojo
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>
36 lines
952 B
Plaintext
36 lines
952 B
Plaintext
---
|
|
source: tests/tests/build.rs
|
|
expression: contents
|
|
---
|
|
<roblox version="4">
|
|
<Item class="Folder" referent="0">
|
|
<Properties>
|
|
<string name="Name">nested_runcontext</string>
|
|
</Properties>
|
|
<Item class="Folder" referent="1">
|
|
<Properties>
|
|
<string name="Name">folder1</string>
|
|
</Properties>
|
|
<Item class="Script" referent="2">
|
|
<Properties>
|
|
<string name="Name">test</string>
|
|
<token name="RunContext">1</token>
|
|
<string name="Source"></string>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Folder" referent="3">
|
|
<Properties>
|
|
<string name="Name">folder2</string>
|
|
</Properties>
|
|
<Item class="Script" referent="4">
|
|
<Properties>
|
|
<string name="Name">test</string>
|
|
<token name="RunContext">0</token>
|
|
<string name="Source"></string>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
</Item>
|
|
</roblox>
|