pub struct ReplicatedActor {
pub class_name: String,
pub properties: Vec<ReplicatedProperty>,
pub rpcs: Vec<RpcDefinition>,
pub net_update_frequency: f32,
pub net_cull_distance_squared: f32,
pub bnet_use_owner_relevancy: bool,
pub always_relevant: bool,
pub relevancy_method: RelevancyMethod,
pub bandwidth_bytes_per_sec: f32,
pub priority: f32,
}Fields§
§class_name: String§properties: Vec<ReplicatedProperty>§rpcs: Vec<RpcDefinition>§net_update_frequency: f32§net_cull_distance_squared: f32§bnet_use_owner_relevancy: bool§always_relevant: bool§relevancy_method: RelevancyMethod§bandwidth_bytes_per_sec: f32§priority: f32Implementations§
Source§impl ReplicatedActor
impl ReplicatedActor
pub fn new(class_name: &str) -> Self
pub fn with_property(self, prop: ReplicatedProperty) -> Self
pub fn with_rpc(self, rpc: RpcDefinition) -> Self
pub fn total_bandwidth_bps(&self) -> f32
pub fn generate_replication_code(&self) -> String
pub fn player_actor() -> Self
Trait Implementations§
Source§impl Clone for ReplicatedActor
impl Clone for ReplicatedActor
Auto Trait Implementations§
impl Freeze for ReplicatedActor
impl RefUnwindSafe for ReplicatedActor
impl Send for ReplicatedActor
impl Sync for ReplicatedActor
impl Unpin for ReplicatedActor
impl UnsafeUnpin for ReplicatedActor
impl UnwindSafe for ReplicatedActor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.