Search Results for

    Show / Hide Table of Contents

    Class BaseSpawn

    Class that controls the spawn particle creation.

    Inheritance
    object
    BaseSpawn
    BaseSpawn<T>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Framework.Particles.Spawn
    Assembly: Evergine.Framework.dll
    Syntax
    public abstract class BaseSpawn

    Constructors

    BaseSpawn()

    Initializes a new instance of the BaseSpawn class.

    Declaration
    public BaseSpawn()

    Fields

    firstEmit

    If it's the first time of the emission.

    Declaration
    protected bool firstEmit
    Field Value
    Type Description
    bool

    Methods

    CreateFromDescription(SpawnDescription)

    Creates a spawn class for its description.

    Declaration
    public static BaseSpawn CreateFromDescription(SpawnDescription spawnDescription)
    Parameters
    Type Name Description
    SpawnDescription spawnDescription

    The spawn description.

    Returns
    Type Description
    BaseSpawn

    The spawn class.

    Reset()

    Resets the spawn behavior.

    Declaration
    public virtual void Reset()

    SpawnParticles(TimeSpan, EmitterSimulator)

    Method that decides how many particles are being spawned.

    Declaration
    public abstract uint SpawnParticles(TimeSpan ellapsedTime, EmitterSimulator emitter)
    Parameters
    Type Name Description
    TimeSpan ellapsedTime

    The ellapsed time.

    EmitterSimulator emitter

    The emitter simulator.

    Returns
    Type Description
    uint

    The number of new particles.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX