mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-20 12:45:05 +00:00
Upgrade dependencies and add SpawnLocation test case
This commit is contained in:
14
Cargo.lock
generated
14
Cargo.lock
generated
@@ -1196,7 +1196,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rbx_reflection"
|
name = "rbx_reflection"
|
||||||
version = "3.2.390"
|
version = "3.2.395"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
@@ -1207,13 +1207,13 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rbx_xml"
|
name = "rbx_xml"
|
||||||
version = "0.11.0"
|
version = "0.11.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"base64 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"rbx_dom_weak 1.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"rbx_dom_weak 1.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"rbx_reflection 3.2.390 (registry+https://github.com/rust-lang/crates.io-index)",
|
"rbx_reflection 3.2.395 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"xml-rs 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"xml-rs 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -1350,8 +1350,8 @@ dependencies = [
|
|||||||
"pretty_assertions 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"pretty_assertions 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"rbx_binary 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"rbx_binary 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"rbx_dom_weak 1.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"rbx_dom_weak 1.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"rbx_reflection 3.2.390 (registry+https://github.com/rust-lang/crates.io-index)",
|
"rbx_reflection 3.2.395 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"rbx_xml 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"rbx_xml 0.11.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"regex 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"regex 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"reqwest 0.9.19 (registry+https://github.com/rust-lang/crates.io-index)",
|
"reqwest 0.9.19 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"ritz 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"ritz 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
@@ -2069,8 +2069,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
"checksum rand_xorshift 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c"
|
"checksum rand_xorshift 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c"
|
||||||
"checksum rbx_binary 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "81428c521a07a3feac9c31180a886e467eecf81b769987f70d51d567a09c321d"
|
"checksum rbx_binary 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "81428c521a07a3feac9c31180a886e467eecf81b769987f70d51d567a09c321d"
|
||||||
"checksum rbx_dom_weak 1.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bb8079fe850096bd18582a8661f5d7a6afee61bc914691be2f287050f3ac0ec4"
|
"checksum rbx_dom_weak 1.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bb8079fe850096bd18582a8661f5d7a6afee61bc914691be2f287050f3ac0ec4"
|
||||||
"checksum rbx_reflection 3.2.390 (registry+https://github.com/rust-lang/crates.io-index)" = "4f00e0d9e70f1825341e45ff610264778fc2fe72a733027feeca85bfcd6a7305"
|
"checksum rbx_reflection 3.2.395 (registry+https://github.com/rust-lang/crates.io-index)" = "e3b43ccce9c29e9f1774359cb96b6ea0c1b897d416dc00f5b45cf54866ca7997"
|
||||||
"checksum rbx_xml 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1e6728d8701e2d78f7b15e793f2b5b4926cb4f0281d6f19371f506816ac89424"
|
"checksum rbx_xml 0.11.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1b837fbcbbd4e0c82c0ba96d6b688a1a3b504a5b95aa4f09e2ede5b9deeb8186"
|
||||||
"checksum rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2"
|
"checksum rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2"
|
||||||
"checksum redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)" = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84"
|
"checksum redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)" = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84"
|
||||||
"checksum regex 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6b23da8dfd98a84bd7e08700190a5d9f7d2d38abd4369dd1dae651bc40bfd2cc"
|
"checksum regex 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6b23da8dfd98a84bd7e08700190a5d9f7d2d38abd4369dd1dae651bc40bfd2cc"
|
||||||
|
|||||||
@@ -43,6 +43,15 @@ fn multi_partition_game() {
|
|||||||
tree_step("with_moved_dir", &live_session, &source_path);
|
tree_step("with_moved_dir", &live_session, &source_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn spawn_location() {
|
||||||
|
let _ = env_logger::try_init();
|
||||||
|
let source_path = project_path("spawn_location");
|
||||||
|
|
||||||
|
let (_dir, live_session) = start_session(&source_path);
|
||||||
|
tree_step("initial", &live_session, &source_path);
|
||||||
|
}
|
||||||
|
|
||||||
/// Find the path to the given test project relative to the manifest.
|
/// Find the path to the given test project relative to the manifest.
|
||||||
fn project_path(name: &str) -> PathBuf {
|
fn project_path(name: &str) -> PathBuf {
|
||||||
let mut path = Path::new(env!("CARGO_MANIFEST_DIR")).join("../test-projects");
|
let mut path = Path::new(env!("CARGO_MANIFEST_DIR")).join("../test-projects");
|
||||||
|
|||||||
6
test-projects/spawn_location/default.project.json
Normal file
6
test-projects/spawn_location/default.project.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "spawn_location",
|
||||||
|
"tree": {
|
||||||
|
"$path": "src"
|
||||||
|
}
|
||||||
|
}
|
||||||
266
test-projects/spawn_location/initial.tree.json
Normal file
266
test-projects/spawn_location/initial.tree.json
Normal file
@@ -0,0 +1,266 @@
|
|||||||
|
{
|
||||||
|
"instances": {
|
||||||
|
"21406306-61c7-45f6-9e3e-50cd6b609214": {
|
||||||
|
"Name": "spawn_location",
|
||||||
|
"ClassName": "Folder",
|
||||||
|
"Properties": {},
|
||||||
|
"Id": "21406306-61c7-45f6-9e3e-50cd6b609214",
|
||||||
|
"Children": [
|
||||||
|
"da5dd362-4eb6-488a-984b-c96327927a70"
|
||||||
|
],
|
||||||
|
"Parent": null
|
||||||
|
},
|
||||||
|
"da5dd362-4eb6-488a-984b-c96327927a70": {
|
||||||
|
"Name": "spawn",
|
||||||
|
"ClassName": "SpawnLocation",
|
||||||
|
"Properties": {
|
||||||
|
"Size": {
|
||||||
|
"Type": "Vector3",
|
||||||
|
"Value": [
|
||||||
|
12.0,
|
||||||
|
1.0,
|
||||||
|
12.0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Massless": {
|
||||||
|
"Type": "Bool",
|
||||||
|
"Value": false
|
||||||
|
},
|
||||||
|
"LeftSurface": {
|
||||||
|
"Type": "Enum",
|
||||||
|
"Value": 0
|
||||||
|
},
|
||||||
|
"Color": {
|
||||||
|
"Type": "Color3",
|
||||||
|
"Value": [
|
||||||
|
0.6392157,
|
||||||
|
0.63529414,
|
||||||
|
0.64705884
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"RightSurfaceInput": {
|
||||||
|
"Type": "Enum",
|
||||||
|
"Value": 0
|
||||||
|
},
|
||||||
|
"Neutral": {
|
||||||
|
"Type": "Bool",
|
||||||
|
"Value": true
|
||||||
|
},
|
||||||
|
"Locked": {
|
||||||
|
"Type": "Bool",
|
||||||
|
"Value": false
|
||||||
|
},
|
||||||
|
"Anchored": {
|
||||||
|
"Type": "Bool",
|
||||||
|
"Value": true
|
||||||
|
},
|
||||||
|
"CanCollide": {
|
||||||
|
"Type": "Bool",
|
||||||
|
"Value": true
|
||||||
|
},
|
||||||
|
"FrontSurfaceInput": {
|
||||||
|
"Type": "Enum",
|
||||||
|
"Value": 0
|
||||||
|
},
|
||||||
|
"LeftSurfaceInput": {
|
||||||
|
"Type": "Enum",
|
||||||
|
"Value": 0
|
||||||
|
},
|
||||||
|
"RightSurface": {
|
||||||
|
"Type": "Enum",
|
||||||
|
"Value": 0
|
||||||
|
},
|
||||||
|
"FrontSurface": {
|
||||||
|
"Type": "Enum",
|
||||||
|
"Value": 0
|
||||||
|
},
|
||||||
|
"TopSurfaceInput": {
|
||||||
|
"Type": "Enum",
|
||||||
|
"Value": 0
|
||||||
|
},
|
||||||
|
"CastShadow": {
|
||||||
|
"Type": "Bool",
|
||||||
|
"Value": true
|
||||||
|
},
|
||||||
|
"BottomSurface": {
|
||||||
|
"Type": "Enum",
|
||||||
|
"Value": 0
|
||||||
|
},
|
||||||
|
"Duration": {
|
||||||
|
"Type": "Int32",
|
||||||
|
"Value": 10
|
||||||
|
},
|
||||||
|
"Velocity": {
|
||||||
|
"Type": "Vector3",
|
||||||
|
"Value": [
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
0.0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"BottomSurfaceInput": {
|
||||||
|
"Type": "Enum",
|
||||||
|
"Value": 0
|
||||||
|
},
|
||||||
|
"TopSurface": {
|
||||||
|
"Type": "Enum",
|
||||||
|
"Value": 0
|
||||||
|
},
|
||||||
|
"CFrame": {
|
||||||
|
"Type": "CFrame",
|
||||||
|
"Value": [
|
||||||
|
-6.0,
|
||||||
|
0.500001,
|
||||||
|
-11.0,
|
||||||
|
1.0,
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
1.0,
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
1.0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"TeamColor": {
|
||||||
|
"Type": "BrickColor",
|
||||||
|
"Value": 194
|
||||||
|
},
|
||||||
|
"RotVelocity": {
|
||||||
|
"Type": "Vector3",
|
||||||
|
"Value": [
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
0.0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Reflectance": {
|
||||||
|
"Type": "Float32",
|
||||||
|
"Value": 0.0
|
||||||
|
},
|
||||||
|
"AllowTeamChangeOnTouch": {
|
||||||
|
"Type": "Bool",
|
||||||
|
"Value": false
|
||||||
|
},
|
||||||
|
"RightParamA": {
|
||||||
|
"Type": "Float32",
|
||||||
|
"Value": -0.5
|
||||||
|
},
|
||||||
|
"LeftParamA": {
|
||||||
|
"Type": "Float32",
|
||||||
|
"Value": -0.5
|
||||||
|
},
|
||||||
|
"Tags": {
|
||||||
|
"Type": "BinaryString",
|
||||||
|
"Value": ""
|
||||||
|
},
|
||||||
|
"Transparency": {
|
||||||
|
"Type": "Float32",
|
||||||
|
"Value": 0.0
|
||||||
|
},
|
||||||
|
"Shape": {
|
||||||
|
"Type": "Enum",
|
||||||
|
"Value": 1
|
||||||
|
},
|
||||||
|
"FrontParamA": {
|
||||||
|
"Type": "Float32",
|
||||||
|
"Value": -0.5
|
||||||
|
},
|
||||||
|
"RootPriority": {
|
||||||
|
"Type": "Int32",
|
||||||
|
"Value": 0
|
||||||
|
},
|
||||||
|
"FrontParamB": {
|
||||||
|
"Type": "Float32",
|
||||||
|
"Value": 0.5
|
||||||
|
},
|
||||||
|
"FormFactor": {
|
||||||
|
"Type": "Enum",
|
||||||
|
"Value": 1
|
||||||
|
},
|
||||||
|
"BottomParamB": {
|
||||||
|
"Type": "Float32",
|
||||||
|
"Value": 0.5
|
||||||
|
},
|
||||||
|
"BackSurface": {
|
||||||
|
"Type": "Enum",
|
||||||
|
"Value": 0
|
||||||
|
},
|
||||||
|
"BottomParamA": {
|
||||||
|
"Type": "Float32",
|
||||||
|
"Value": -0.5
|
||||||
|
},
|
||||||
|
"Enabled": {
|
||||||
|
"Type": "Bool",
|
||||||
|
"Value": true
|
||||||
|
},
|
||||||
|
"BackParamB": {
|
||||||
|
"Type": "Float32",
|
||||||
|
"Value": 0.5
|
||||||
|
},
|
||||||
|
"BackParamA": {
|
||||||
|
"Type": "Float32",
|
||||||
|
"Value": -0.5
|
||||||
|
},
|
||||||
|
"LeftParamB": {
|
||||||
|
"Type": "Float32",
|
||||||
|
"Value": 0.5
|
||||||
|
},
|
||||||
|
"TopParamA": {
|
||||||
|
"Type": "Float32",
|
||||||
|
"Value": -0.5
|
||||||
|
},
|
||||||
|
"RightParamB": {
|
||||||
|
"Type": "Float32",
|
||||||
|
"Value": 0.5
|
||||||
|
},
|
||||||
|
"CollisionGroupId": {
|
||||||
|
"Type": "Int32",
|
||||||
|
"Value": 0
|
||||||
|
},
|
||||||
|
"BackSurfaceInput": {
|
||||||
|
"Type": "Enum",
|
||||||
|
"Value": 0
|
||||||
|
},
|
||||||
|
"CustomPhysicalProperties": {
|
||||||
|
"Type": "PhysicalProperties",
|
||||||
|
"Value": null
|
||||||
|
},
|
||||||
|
"TopParamB": {
|
||||||
|
"Type": "Float32",
|
||||||
|
"Value": 0.5
|
||||||
|
},
|
||||||
|
"Material": {
|
||||||
|
"Type": "Enum",
|
||||||
|
"Value": 256
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Id": "da5dd362-4eb6-488a-984b-c96327927a70",
|
||||||
|
"Children": [],
|
||||||
|
"Parent": "21406306-61c7-45f6-9e3e-50cd6b609214"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root_id": "21406306-61c7-45f6-9e3e-50cd6b609214",
|
||||||
|
"metadata": {
|
||||||
|
"da5dd362-4eb6-488a-984b-c96327927a70": {
|
||||||
|
"ignore_unknown_instances": false,
|
||||||
|
"source_path": "src/spawn.rbxmx",
|
||||||
|
"project_definition": null
|
||||||
|
},
|
||||||
|
"21406306-61c7-45f6-9e3e-50cd6b609214": {
|
||||||
|
"ignore_unknown_instances": false,
|
||||||
|
"source_path": "src",
|
||||||
|
"project_definition": [
|
||||||
|
"spawn_location",
|
||||||
|
{
|
||||||
|
"class_name": null,
|
||||||
|
"children": {},
|
||||||
|
"properties": {},
|
||||||
|
"ignore_unknown_instances": null,
|
||||||
|
"path": "src"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
85
test-projects/spawn_location/src/spawn.rbxmx
Normal file
85
test-projects/spawn_location/src/spawn.rbxmx
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.roblox.com/roblox.xsd" version="4">
|
||||||
|
<Meta name="ExplicitAutoJoints">true</Meta>
|
||||||
|
<External>null</External>
|
||||||
|
<External>nil</External>
|
||||||
|
<Item class="SpawnLocation" referent="RBX8927A074BA5942B696D00BDFD02B5365">
|
||||||
|
<Properties>
|
||||||
|
<bool name="AllowTeamChangeOnTouch">false</bool>
|
||||||
|
<bool name="Anchored">true</bool>
|
||||||
|
<float name="BackParamA">-0.5</float>
|
||||||
|
<float name="BackParamB">0.5</float>
|
||||||
|
<token name="BackSurface">0</token>
|
||||||
|
<token name="BackSurfaceInput">0</token>
|
||||||
|
<float name="BottomParamA">-0.5</float>
|
||||||
|
<float name="BottomParamB">0.5</float>
|
||||||
|
<token name="BottomSurface">0</token>
|
||||||
|
<token name="BottomSurfaceInput">0</token>
|
||||||
|
<CoordinateFrame name="CFrame">
|
||||||
|
<X>-6</X>
|
||||||
|
<Y>0.500001013</Y>
|
||||||
|
<Z>-11</Z>
|
||||||
|
<R00>1</R00>
|
||||||
|
<R01>0</R01>
|
||||||
|
<R02>0</R02>
|
||||||
|
<R10>0</R10>
|
||||||
|
<R11>1</R11>
|
||||||
|
<R12>0</R12>
|
||||||
|
<R20>0</R20>
|
||||||
|
<R21>0</R21>
|
||||||
|
<R22>1</R22>
|
||||||
|
</CoordinateFrame>
|
||||||
|
<bool name="CanCollide">true</bool>
|
||||||
|
<bool name="CastShadow">true</bool>
|
||||||
|
<int name="CollisionGroupId">0</int>
|
||||||
|
<Color3uint8 name="Color3uint8">4288914085</Color3uint8>
|
||||||
|
<PhysicalProperties name="CustomPhysicalProperties">
|
||||||
|
<CustomPhysics>false</CustomPhysics>
|
||||||
|
</PhysicalProperties>
|
||||||
|
<int name="Duration">10</int>
|
||||||
|
<bool name="Enabled">true</bool>
|
||||||
|
<float name="FrontParamA">-0.5</float>
|
||||||
|
<float name="FrontParamB">0.5</float>
|
||||||
|
<token name="FrontSurface">0</token>
|
||||||
|
<token name="FrontSurfaceInput">0</token>
|
||||||
|
<float name="LeftParamA">-0.5</float>
|
||||||
|
<float name="LeftParamB">0.5</float>
|
||||||
|
<token name="LeftSurface">0</token>
|
||||||
|
<token name="LeftSurfaceInput">0</token>
|
||||||
|
<bool name="Locked">false</bool>
|
||||||
|
<bool name="Massless">false</bool>
|
||||||
|
<token name="Material">256</token>
|
||||||
|
<string name="Name">SpawnLocation</string>
|
||||||
|
<bool name="Neutral">true</bool>
|
||||||
|
<float name="Reflectance">0</float>
|
||||||
|
<float name="RightParamA">-0.5</float>
|
||||||
|
<float name="RightParamB">0.5</float>
|
||||||
|
<token name="RightSurface">0</token>
|
||||||
|
<token name="RightSurfaceInput">0</token>
|
||||||
|
<int name="RootPriority">0</int>
|
||||||
|
<Vector3 name="RotVelocity">
|
||||||
|
<X>0</X>
|
||||||
|
<Y>0</Y>
|
||||||
|
<Z>0</Z>
|
||||||
|
</Vector3>
|
||||||
|
<BinaryString name="Tags"></BinaryString>
|
||||||
|
<int name="TeamColor">194</int>
|
||||||
|
<float name="TopParamA">-0.5</float>
|
||||||
|
<float name="TopParamB">0.5</float>
|
||||||
|
<token name="TopSurface">0</token>
|
||||||
|
<token name="TopSurfaceInput">0</token>
|
||||||
|
<float name="Transparency">0</float>
|
||||||
|
<Vector3 name="Velocity">
|
||||||
|
<X>0</X>
|
||||||
|
<Y>0</Y>
|
||||||
|
<Z>0</Z>
|
||||||
|
</Vector3>
|
||||||
|
<token name="formFactorRaw">1</token>
|
||||||
|
<token name="shape">1</token>
|
||||||
|
<Vector3 name="size">
|
||||||
|
<X>12</X>
|
||||||
|
<Y>1</Y>
|
||||||
|
<Z>12</Z>
|
||||||
|
</Vector3>
|
||||||
|
</Properties>
|
||||||
|
</Item>
|
||||||
|
</roblox>
|
||||||
Reference in New Issue
Block a user