diff --git a/Cargo.lock b/Cargo.lock index 03ce298..f513553 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -481,9 +481,9 @@ dependencies = [ [[package]] name = "strafesnet_common" -version = "0.1.3" +version = "0.2.0" source = "sparse+https://git.itzana.me/api/packages/strafesnet/cargo/" -checksum = "10a7e3b69506893bbdde90ce8a9d75cd56d280c0424d2dfdf98f8520179d0c1b" +checksum = "74580c59a09194ce39db49cd814a5c2fc2d61513c88c6b811b5b40c0da6de057" dependencies = [ "bitflags 2.6.0", "glam", @@ -492,7 +492,7 @@ dependencies = [ [[package]] name = "strafesnet_rbx_loader" -version = "0.3.1" +version = "0.3.2" dependencies = [ "bytemuck", "glam", diff --git a/Cargo.toml b/Cargo.toml index 9449ccd..3deb92e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "strafesnet_rbx_loader" -version = "0.3.1" +version = "0.3.2" edition = "2021" repository = "https://git.itzana.me/StrafesNET/rbx_loader" license = "MIT OR Apache-2.0" @@ -18,4 +18,4 @@ rbx_dom_weak = { version = "2.7.0", registry = "strafesnet" } rbx_mesh = "0.1.2" rbx_reflection_database = { version = "0.2.10", registry = "strafesnet" } rbx_xml = { version = "0.13.3", registry = "strafesnet" } -strafesnet_common = { version = "0.1.3", registry = "strafesnet" } +strafesnet_common = { version = "0.2.0", registry = "strafesnet" } diff --git a/src/rbx.rs b/src/rbx.rs index d63c4ae..5035b28 100644 --- a/src/rbx.rs +++ b/src/rbx.rs @@ -163,7 +163,7 @@ fn get_attributes(name:&str,can_collide:bool,velocity:Planar64Vec3,model_id:mode force_intersecting=true; modes_builder.insert_mode( gameplay_modes::ModeId::MAIN, - gameplay_modes::Mode::new( + gameplay_modes::Mode::empty( gameplay_style::StyleModifiers::roblox_bhop(), model_id ) @@ -209,7 +209,7 @@ fn get_attributes(name:&str,can_collide:bool,velocity:Planar64Vec3,model_id:mode force_intersecting=true; modes_builder.insert_mode( gameplay_modes::ModeId::new(captures[2].parse::().unwrap()), - gameplay_modes::Mode::new( + gameplay_modes::Mode::empty( gameplay_style::StyleModifiers::roblox_bhop(), model_id ) @@ -241,7 +241,7 @@ fn get_attributes(name:&str,can_collide:bool,velocity:Planar64Vec3,model_id:mode modes_builder.insert_stage( gameplay_modes::ModeId::MAIN, stage_id, - gameplay_modes::Stage::new(model_id), + gameplay_modes::Stage::empty(model_id), ); //TODO: let denormalize handle this gameplay_modes::StageElementBehaviour::SpawnAt @@ -847,7 +847,7 @@ impl PartialMap1{ } } } - + //index the attributes let attributes_id=if let Some(&attributes_id)=attributes_id_from_attributes.get(&model_owned_attributes.attributes){ attributes_id @@ -901,9 +901,9 @@ impl PartialMap2{ attributes:self.attributes, meshes:self.meshes, models:self.models, - //the roblox legacy texture thing always works + //the roblox legacy texture thing always works textures, render_configs, } } -} \ No newline at end of file +}