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>
45 lines
830 B
Plaintext
45 lines
830 B
Plaintext
---
|
|
source: tests/tests/serve.rs
|
|
expression: "read_response.intern_and_redact(&mut redactions, root_id)"
|
|
|
|
---
|
|
instances:
|
|
id-2:
|
|
Children:
|
|
- id-3
|
|
- id-4
|
|
ClassName: Folder
|
|
Id: id-2
|
|
Metadata:
|
|
ignoreUnknownInstances: false
|
|
Name: scripts
|
|
Parent: "00000000000000000000000000000000"
|
|
Properties: {}
|
|
id-3:
|
|
Children: []
|
|
ClassName: Script
|
|
Id: id-3
|
|
Metadata:
|
|
ignoreUnknownInstances: false
|
|
Name: bar
|
|
Parent: id-2
|
|
Properties:
|
|
RunContext:
|
|
Enum: 0
|
|
Source:
|
|
String: "-- Hello, from bar!"
|
|
id-4:
|
|
Children: []
|
|
ClassName: ModuleScript
|
|
Id: id-4
|
|
Metadata:
|
|
ignoreUnknownInstances: false
|
|
Name: foo
|
|
Parent: id-2
|
|
Properties:
|
|
Source:
|
|
String: "-- Hello, from foo!"
|
|
messageCursor: 0
|
|
sessionId: id-1
|
|
|