Zicklag
05/15/2023, 12:39 AMEntity doesn't implement PartialEq?Zicklag
05/15/2023, 12:40 AMZicklag
05/15/2023, 12:40 AMTeaSkittles
05/15/2023, 12:44 AMTeaSkittles
05/15/2023, 12:44 AMCargo.toml file in jumpy will need to be updated too, to pull down the newest version of bones_lib.Zicklag
05/15/2023, 12:45 AMcargo update to update the lock file.Zicklag
05/15/2023, 12:46 AMEntity already implements Eq and PartialEq.TeaSkittles
05/15/2023, 12:51 AMZicklag
05/15/2023, 12:51 AMTeaSkittles
05/15/2023, 2:39 AMEntity do not implement PartialEq compared to non-references. The Entity copy is cheap, so that'll just be my solution.Zicklag
05/15/2023, 2:39 AM&Entity to a &Entity.Zicklag
05/15/2023, 2:39 AMZicklag
05/15/2023, 2:40 AMEntity are 64 bits on a 64 bit system. :man_shrugging:TeaSkittles
05/15/2023, 2:41 AMCopy.Zicklag
05/15/2023, 2:41 AMTeaSkittles
05/15/2023, 2:46 AMTeaSkittles
05/15/2023, 3:10 AMSpawner<T> so that I can have Spawner<PlayerSpawner>?Zicklag
05/15/2023, 3:10 AMTeaSkittles
05/15/2023, 3:10 AMZicklag
05/15/2023, 3:10 AMTeaSkittles
05/15/2023, 3:10 AMZicklag
05/15/2023, 3:10 AMTypeUlid.Zicklag
05/15/2023, 3:11 AMSpawner<Whatver> combination.Zicklag
05/15/2023, 3:11 AMZicklag
05/15/2023, 3:12 AMTypeUlid, but you coudl still impl TypeUlid for Spawner<PlayerSpawner> { /* impl */ }.TeaSkittles
05/15/2023, 3:13 AMSpawner very flexible, so I'm giving it a boolean if "the children of this spawner are shared with all other spawners of this type". That way I can know to check if this Spawner is the last one.TeaSkittles
05/15/2023, 3:16 AMTeaSkittles
05/21/2023, 12:23 AMAudioEvents resource, when a resource does not exist, the error message in world.rs does not contain the actual audio handle information such that it can be easily understood which audio file is missing.
Code in world.rs:
pub fn resource(&self) -> AtomicResource {
match self.resources.try_get::() {
Some(r) => r,
None => panic!(
"Requested resource {} does not exist in the World.
Did you forget to add it using world.insert_resource / world.init_resource?",
std::any::type_name::()
),
}
}
Error:
thread 'main' panicked at 'Requested resource bones_render::audio::AudioEvents does not exist in the World.
Did you forget to add it using world.insert_resource / world.init_resource?', /home/austin/.cargo/git/checkouts/bones-b608aa0d074178a4/5e8436e/crates/bones_ecs/src/world.rs:126:21Zicklag
05/21/2023, 12:24 AMZicklag
05/21/2023, 12:25 AM