Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ScriptProcessor Class

    Namespace: Stride.Engine.Processors
    Assembly: Stride.Engine.dll

    Manage scripts

    System.Object → EntityProcessor → EntityProcessor<ScriptComponent, ScriptComponent> → EntityProcessor<ScriptComponent> → ScriptProcessor
    Derived from ScriptProcessor:

    public sealed class ScriptProcessor : EntityProcessor<ScriptComponent>
    Name Description
    Constructors
    ScriptProcessor()
    Methods
    OnEntityComponentAdding(Entity, ScriptComponent, ScriptComponent)

    Run when a matching entity is added to this entity processor.

    OnEntityComponentRemoved(Entity, ScriptComponent, ScriptComponent)

    Run when a matching entity is removed from this entity processor.

    OnSystemAdd()
    | Improve this Doc View Source

    Constructors


    ScriptProcessor()

    public ScriptProcessor()
    | Improve this Doc View Source

    Methods


    OnEntityComponentAdding(Entity, ScriptComponent, ScriptComponent)

    Run when a matching entity is added to this entity processor.

    protected override void OnEntityComponentAdding(Entity entity, ScriptComponent component, ScriptComponent associatedData)
    Parameters
    Type Name Description
    Entity entity

    The entity.

    ScriptComponent component
    ScriptComponent associatedData
    Overrides
    Stride.Engine.EntityProcessor<Stride.Engine.ScriptComponent, Stride.Engine.ScriptComponent>.OnEntityComponentAdding(Stride.Engine.Entity, Stride.Engine.ScriptComponent, Stride.Engine.ScriptComponent)

    OnEntityComponentRemoved(Entity, ScriptComponent, ScriptComponent)

    Run when a matching entity is removed from this entity processor.

    protected override void OnEntityComponentRemoved(Entity entity, ScriptComponent component, ScriptComponent associatedData)
    Parameters
    Type Name Description
    Entity entity

    The entity.

    ScriptComponent component
    ScriptComponent associatedData
    Overrides
    Stride.Engine.EntityProcessor<Stride.Engine.ScriptComponent, Stride.Engine.ScriptComponent>.OnEntityComponentRemoved(Stride.Engine.Entity, Stride.Engine.ScriptComponent, Stride.Engine.ScriptComponent)

    OnSystemAdd()

    protected override void OnSystemAdd()
    Overrides
    Stride.Engine.EntityProcessor<Stride.Engine.ScriptComponent, Stride.Engine.ScriptComponent>.OnSystemAdd()

    Inherited Members

    EntityProcessor<ScriptComponent>.GenerateComponentData(Entity, ScriptComponent)
    EntityProcessor<ScriptComponent>.IsAssociatedDataValid(Entity, ScriptComponent, ScriptComponent)
    EntityProcessor<ScriptComponent, ScriptComponent>.ComponentDatas
    EntityProcessor<ScriptComponent, ScriptComponent>.OnSystemAdd()
    EntityProcessor<ScriptComponent, ScriptComponent>.OnSystemRemove()
    EntityProcessor<ScriptComponent, ScriptComponent>.RemoveAllEntities()
    EntityProcessor<ScriptComponent, ScriptComponent>.ProcessEntityComponent(Entity, EntityComponent, Boolean)
    EntityProcessor<ScriptComponent, ScriptComponent>.GenerateComponentData(Entity, ScriptComponent)
    EntityProcessor<ScriptComponent, ScriptComponent>.IsAssociatedDataValid(Entity, ScriptComponent, ScriptComponent)
    EntityProcessor<ScriptComponent, ScriptComponent>.OnEntityComponentAdding(Entity, ScriptComponent, ScriptComponent)
    EntityProcessor<ScriptComponent, ScriptComponent>.OnEntityComponentRemoved(Entity, ScriptComponent, ScriptComponent)
    EntityProcessor.Tags
    EntityProcessor.UpdateProfilingState
    EntityProcessor.DrawProfilingState
    EntityProcessor.Enabled
    EntityProcessor.MainComponentType
    EntityProcessor.RequiredTypes
    EntityProcessor.HasRequiredComponents
    EntityProcessor.Order
    EntityProcessor.EntityManager
    EntityProcessor.Services
    EntityProcessor.Update(GameTime)
    EntityProcessor.Draw(RenderContext)
    EntityProcessor.OnSystemRemove()
    EntityProcessor.RemoveAllEntities()
    EntityProcessor.ProcessEntityComponent(Entity, EntityComponent, Boolean)
    EntityProcessor.InternalAddEntity(Entity)
    EntityProcessor.InternalRemoveEntity(Entity, Boolean)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation