Search Results for

    Show / Hide Table of Contents

    Class OpenInitParticle

    Specialization of the InitializationParticle class that provides direct access to some of its protected members. Should only be used by the system because setting these values directly can lead to inconsistent states.

    Inheritance
    object
    InitializationParticle
    OpenInitParticle
    Implements
    IParticleState
    Namespace: AS2.Sim
    Assembly: .dll
    Syntax
    public class OpenInitParticle : InitializationParticle, IParticleState

    Constructors

    | Edit this page View Source

    OpenInitParticle(ParticleSystem, InitParticleSaveData)

    Declaration
    public OpenInitParticle(ParticleSystem system, InitParticleSaveData data)
    Parameters
    Type Name Description
    ParticleSystem system
    InitParticleSaveData data
    | Edit this page View Source

    OpenInitParticle(ParticleSystem, Vector2Int, bool, Direction, Direction)

    Declaration
    public OpenInitParticle(ParticleSystem system, Vector2Int position, bool chirality, Direction compassDir, Direction expansionDir = Direction.NONE)
    Parameters
    Type Name Description
    ParticleSystem system
    Vector2Int position
    bool chirality
    Direction compassDir
    Direction expansionDir

    Properties

    | Edit this page View Source

    ExpansionDirDirect

    Direct access to the expansion direction of the particle.

    Declaration
    public Direction ExpansionDirDirect { get; set; }
    Property Value
    Type Description
    Direction
    | Edit this page View Source

    HeadPosDirect

    Direct access to the head position of the particle.

    Declaration
    public Vector2Int HeadPosDirect { get; set; }
    Property Value
    Type Description
    Vector2Int
    | Edit this page View Source

    TailPosDirect

    Direct access to the tail position of the particle.

    Declaration
    public Vector2Int TailPosDirect { get; set; }
    Property Value
    Type Description
    Vector2Int

    Methods

    | Edit this page View Source

    GenerateSaveData()

    Generates a serializable representation of this particle.

    Declaration
    public override InitParticleSaveData GenerateSaveData()
    Returns
    Type Description
    InitParticleSaveData

    A serializable object representing this particle.

    Overrides
    InitializationParticle.GenerateSaveData()

    Implements

    IParticleState
    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX