support rbxmx

This commit is contained in:
Quaternions 2023-09-26 14:26:05 -07:00
parent 7c2666fdf5
commit c5deef8753
3 changed files with 22 additions and 0 deletions

15
Cargo.lock generated
View File

@ -1442,6 +1442,20 @@ dependencies = [
"thiserror", "thiserror",
] ]
[[package]]
name = "rbx_xml"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4bc65b70827519fdc4ab47416d1085b912f087fadab9ed415471b6daba635574"
dependencies = [
"base64",
"log",
"rbx_dom_weak",
"rbx_reflection",
"rbx_reflection_database",
"xml-rs",
]
[[package]] [[package]]
name = "redox_syscall" name = "redox_syscall"
version = "0.3.5" version = "0.3.5"
@ -1658,6 +1672,7 @@ dependencies = [
"rbx_binary", "rbx_binary",
"rbx_dom_weak", "rbx_dom_weak",
"rbx_reflection_database", "rbx_reflection_database",
"rbx_xml",
"wgpu", "wgpu",
"winit", "winit",
] ]

View File

@ -17,6 +17,7 @@ pollster = "0.3.0"
rbx_binary = "0.7.1" rbx_binary = "0.7.1"
rbx_dom_weak = "2.5.0" rbx_dom_weak = "2.5.0"
rbx_reflection_database = "0.2.7" rbx_reflection_database = "0.2.7"
rbx_xml = "0.13.1"
wgpu = "0.17.0" wgpu = "0.17.0"
winit = "0.28.6" winit = "0.28.6"

View File

@ -847,6 +847,12 @@ impl framework::Example for GraphicsData {
}else{ }else{
None None
} }
}else if &first_8==b"<roblox "{
if let Ok(dom) = rbx_xml::from_reader(input,rbx_xml::DecodeOptions::default()){
Some(self.generate_modeldatas_roblox(dom))
}else{
None
}
//}else if &first_8[0..4]==b"VBSP"{ //}else if &first_8[0..4]==b"VBSP"{
// self.generate_modeldatas_valve(input) // self.generate_modeldatas_valve(input)
}else{ }else{