pub struct StatsProjectionNode { /* private fields */ }Expand description
Folds every mechanic/state calculator’s events into per-frame cumulative stat accumulators.
Implementations§
Trait Implementations§
Source§impl AnalysisNode for StatsProjectionNode
impl AnalysisNode for StatsProjectionNode
Source§type State = StatsProjectionState
type State = StatsProjectionState
The typed state this node publishes to downstream nodes.
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Stable identifier for this node, used for dependency wiring and the
built-in node registry.
fn dependencies(&self) -> Vec<AnalysisDependency>
fn evaluate(&mut self, ctx: &AnalysisStateContext<'_>) -> SubtrActorResult<()>
fn finish(&mut self, ctx: &AnalysisStateContext<'_>) -> SubtrActorResult<()>
fn state(&self) -> &Self::State
Source§fn emitted_events(&self) -> &'static [EmittedEvent]
fn emitted_events(&self) -> &'static [EmittedEvent]
Static catalog of the events this node emits, if any. Read more
fn on_replay_meta(&mut self, _meta: &ReplayMeta) -> SubtrActorResult<()>
Source§impl Clone for StatsProjectionNode
impl Clone for StatsProjectionNode
Source§fn clone(&self) -> StatsProjectionNode
fn clone(&self) -> StatsProjectionNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StatsProjectionNode
impl Debug for StatsProjectionNode
Source§impl Default for StatsProjectionNode
impl Default for StatsProjectionNode
Source§fn default() -> StatsProjectionNode
fn default() -> StatsProjectionNode
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StatsProjectionNode
impl RefUnwindSafe for StatsProjectionNode
impl Send for StatsProjectionNode
impl Sync for StatsProjectionNode
impl Unpin for StatsProjectionNode
impl UnsafeUnpin for StatsProjectionNode
impl UnwindSafe for StatsProjectionNode
Blanket Implementations§
Source§impl<N> AnalysisNodeDyn for Nwhere
N: AnalysisNode,
impl<N> AnalysisNodeDyn for Nwhere
N: AnalysisNode,
fn name(&self) -> &'static str
fn emitted_events(&self) -> &'static [EmittedEvent]
fn provides_state_type_id(&self) -> TypeId
fn provides_state_type_name(&self) -> &'static str
fn on_replay_meta(&mut self, meta: &ReplayMeta) -> Result<(), SubtrActorError>
fn dependencies(&self) -> Vec<AnalysisDependency>
fn evaluate( &mut self, ctx: &AnalysisStateContext<'_>, ) -> Result<(), SubtrActorError>
fn finish( &mut self, ctx: &AnalysisStateContext<'_>, ) -> Result<(), SubtrActorError>
fn state_any(&self) -> &(dyn Any + 'static)
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