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.
Implements
Namespace: AS2.Sim
Assembly: .dll
Syntax
public class OpenInitParticle : InitializationParticle, IParticleState
Constructors
| Edit this page View SourceOpenInitParticle(ParticleSystem, InitParticleSaveData)
Declaration
public OpenInitParticle(ParticleSystem system, InitParticleSaveData data)
Parameters
Type | Name | Description |
---|---|---|
ParticleSystem | system | |
InitParticleSaveData | data |
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 SourceExpansionDirDirect
Direct access to the expansion direction of the particle.
Declaration
public Direction ExpansionDirDirect { get; set; }
Property Value
Type | Description |
---|---|
Direction |
HeadPosDirect
Direct access to the head position of the particle.
Declaration
public Vector2Int HeadPosDirect { get; set; }
Property Value
Type | Description |
---|---|
Vector2Int |
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 SourceGenerateSaveData()
Generates a serializable representation of this particle.
Declaration
public override InitParticleSaveData GenerateSaveData()
Returns
Type | Description |
---|---|
InitParticleSaveData | A serializable object representing this particle. |