Skip to content

Commit

Permalink
fix demo_utils crate by stubbing out missing new world functions
Browse files Browse the repository at this point in the history
  • Loading branch information
connorcarpenter committed Jan 11, 2024
1 parent 8b788aa commit 31723b9
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions demos/demo_utils/demo_world/src/world.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
use std::{any::Any, collections::HashMap};

use naia_shared::{
BigMap, ComponentFieldUpdate, ComponentKind, ComponentUpdate,
LocalEntityAndGlobalEntityConverter, ReplicaDynMutWrapper, ReplicaDynRefWrapper,
ReplicaMutWrapper, ReplicaRefWrapper, Replicate, SerdeErr, WorldMutType, WorldRefType,
};
use naia_shared::{BigMap, ComponentFieldUpdate, ComponentKind, ComponentUpdate, GlobalWorldManagerType, LocalEntityAndGlobalEntityConverter, ReplicaDynMutWrapper, ReplicaDynRefWrapper, ReplicaMutWrapper, ReplicaRefWrapper, Replicate, SerdeErr, WorldMutType, WorldRefType};

use super::{
component_ref::{ComponentMut, ComponentRef},
Expand Down Expand Up @@ -299,6 +295,38 @@ impl<'w> WorldMutType<Entity> for WorldMut<'w> {

None
}

fn entity_publish(&mut self, _global_world_manager: &dyn GlobalWorldManagerType<Entity>, _entity: &Entity) {
todo!()
}

fn component_publish(&mut self, _global_world_manager: &dyn GlobalWorldManagerType<Entity>, _entity: &Entity, _component_kind: &ComponentKind) {
todo!()
}

fn entity_unpublish(&mut self, _entity: &Entity) {
todo!()
}

fn component_unpublish(&mut self, _entity: &Entity, _component_kind: &ComponentKind) {
todo!()
}

fn entity_enable_delegation(&mut self, _global_world_manager: &dyn GlobalWorldManagerType<Entity>, _entity: &Entity) {
todo!()
}

fn component_enable_delegation(&mut self, _global_world_manager: &dyn GlobalWorldManagerType<Entity>, _entity: &Entity, _component_kind: &ComponentKind) {
todo!()
}

fn entity_disable_delegation(&mut self, _entity: &Entity) {
todo!()
}

fn component_disable_delegation(&mut self, _entity: &Entity, _component_kind: &ComponentKind) {
todo!()
}
}

// private methods //
Expand Down

0 comments on commit 31723b9

Please sign in to comment.