pub enum AnvilKitSystemSet {
Input,
Time,
Physics,
GameLogic,
Transform,
Render,
Audio,
UI,
Network,
Debug,
}Expand description
系统集合标签
用于对相关系统进行分组,便于批量操作和依赖管理。
§示例
use anvilkit_ecs::prelude::*;
use anvilkit_ecs::schedule::AnvilKitSchedule;
fn physics_system() {
// 物理计算
}
fn collision_system() {
// 碰撞检测
}
let mut app = App::new();
app.add_systems(AnvilKitSchedule::Update, (
physics_system.in_set(AnvilKitSystemSet::Physics),
collision_system.in_set(AnvilKitSystemSet::Physics),
));Variants§
Input
输入处理系统集合
处理键盘、鼠标、手柄等输入设备的系统。
Time
时间管理系统集合
更新时间、计时器、帧率等时间相关的系统。
Physics
物理系统集合
物理模拟、碰撞检测、刚体更新等系统。
GameLogic
游戏逻辑系统集合
游戏的核心逻辑,如 AI、状态机、游戏规则等。
Transform
变换系统集合
Transform 层次传播、坐标变换等系统。
Render
渲染系统集合
渲染准备、可见性计算、材质更新等系统。
Audio
音频系统集合
音频播放、音效处理、音量控制等系统。
UI
UI 系统集合
用户界面更新、布局计算、事件处理等系统。
Network
网络系统集合
网络通信、同步、序列化等系统。
Debug
调试系统集合
调试信息显示、性能监控、日志记录等系统。
Trait Implementations§
Source§impl Clone for AnvilKitSystemSet
impl Clone for AnvilKitSystemSet
Source§fn clone(&self) -> AnvilKitSystemSet
fn clone(&self) -> AnvilKitSystemSet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnvilKitSystemSet
impl Debug for AnvilKitSystemSet
Source§impl Hash for AnvilKitSystemSet
impl Hash for AnvilKitSystemSet
Source§impl PartialEq for AnvilKitSystemSet
impl PartialEq for AnvilKitSystemSet
Source§impl SystemSet for AnvilKitSystemSet
impl SystemSet for AnvilKitSystemSet
Source§fn as_dyn_eq(&self) -> &(dyn DynEq + 'static)
fn as_dyn_eq(&self) -> &(dyn DynEq + 'static)
Casts this value to a form where it can be compared with other type-erased values.
Source§fn system_type(&self) -> Option<TypeId>
fn system_type(&self) -> Option<TypeId>
Returns
Some if this system set is a SystemTypeSet.Source§fn is_anonymous(&self) -> bool
fn is_anonymous(&self) -> bool
Returns
true if this system set is an AnonymousSet.impl Copy for AnvilKitSystemSet
impl Eq for AnvilKitSystemSet
impl StructuralPartialEq for AnvilKitSystemSet
Auto Trait Implementations§
impl Freeze for AnvilKitSystemSet
impl RefUnwindSafe for AnvilKitSystemSet
impl Send for AnvilKitSystemSet
impl Sync for AnvilKitSystemSet
impl Unpin for AnvilKitSystemSet
impl UnsafeUnpin for AnvilKitSystemSet
impl UnwindSafe for AnvilKitSystemSet
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
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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<S> IntoSystemSet<()> for Swhere
S: SystemSet,
impl<S> IntoSystemSet<()> for Swhere
S: SystemSet,
Source§impl<S> IntoSystemSetConfigs for Swhere
S: SystemSet,
impl<S> IntoSystemSetConfigs for Swhere
S: SystemSet,
fn into_configs(self) -> NodeConfigs<Interned<dyn SystemSet>>
Source§fn in_set(self, set: impl SystemSet) -> NodeConfigs<Interned<dyn SystemSet>>
fn in_set(self, set: impl SystemSet) -> NodeConfigs<Interned<dyn SystemSet>>
Add these system sets to the provided
set.Source§fn before<M>(
self,
set: impl IntoSystemSet<M>,
) -> NodeConfigs<Interned<dyn SystemSet>>
fn before<M>( self, set: impl IntoSystemSet<M>, ) -> NodeConfigs<Interned<dyn SystemSet>>
Source§fn after<M>(
self,
set: impl IntoSystemSet<M>,
) -> NodeConfigs<Interned<dyn SystemSet>>
fn after<M>( self, set: impl IntoSystemSet<M>, ) -> NodeConfigs<Interned<dyn SystemSet>>
Source§fn before_ignore_deferred<M>(
self,
set: impl IntoSystemSet<M>,
) -> NodeConfigs<Interned<dyn SystemSet>>
fn before_ignore_deferred<M>( self, set: impl IntoSystemSet<M>, ) -> NodeConfigs<Interned<dyn SystemSet>>
Run before all systems in
set. Read moreSource§fn after_ignore_deferred<M>(
self,
set: impl IntoSystemSet<M>,
) -> NodeConfigs<Interned<dyn SystemSet>>
fn after_ignore_deferred<M>( self, set: impl IntoSystemSet<M>, ) -> NodeConfigs<Interned<dyn SystemSet>>
Run after all systems in
set. Read moreSource§fn ambiguous_with<M>(
self,
set: impl IntoSystemSet<M>,
) -> NodeConfigs<Interned<dyn SystemSet>>
fn ambiguous_with<M>( self, set: impl IntoSystemSet<M>, ) -> NodeConfigs<Interned<dyn SystemSet>>
Suppress warnings and errors that would result from systems in these sets having ambiguities
(conflicting access but indeterminate order) with systems in
set.Source§fn ambiguous_with_all(self) -> NodeConfigs<Interned<dyn SystemSet>>
fn ambiguous_with_all(self) -> NodeConfigs<Interned<dyn SystemSet>>
Suppress warnings and errors that would result from systems in these sets having ambiguities
(conflicting access but indeterminate order) with any other system.
Source§fn chain(self) -> NodeConfigs<Interned<dyn SystemSet>>
fn chain(self) -> NodeConfigs<Interned<dyn SystemSet>>
Treat this collection as a sequence of system sets. Read more
Source§fn chain_ignore_deferred(
self,
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
fn chain_ignore_deferred( self, ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
Treat this collection as a sequence of systems. Read more