Table of Contents

Class FXContextualEvent

Namespace
KSP.VFX
Assembly
Assembly-CSharp.dll
public abstract class FXContextualEvent : ISpatialDatabaseNode
Inheritance
FXContextualEvent
Implements
Derived
Inherited Members
Extension Methods

Constructors

FXContextualEvent()

public FXContextualEvent()

FXContextualEvent(FXContextualEventParams, ContextualFxSystem, FXPartContextData)

public FXContextualEvent(FXContextualEventParams eventParams, ContextualFxSystem system, FXPartContextData partData)

Parameters

eventParams FXContextualEventParams
system ContextualFxSystem
partData FXPartContextData

Fields

ContextData

public FXContextData ContextData

Field Value

FXContextData

EventParams

public FXContextualEventParams EventParams

Field Value

FXContextualEventParams

FXSystem

public ContextualFxSystem FXSystem

Field Value

ContextualFxSystem

PartData

public FXPartContextData PartData

Field Value

FXPartContextData

VFX_SOCKET_NAME

public readonly string VFX_SOCKET_NAME

Field Value

string

_active

protected bool _active

Field Value

bool

_overridePrefab

protected bool _overridePrefab

Field Value

bool

_overridePrefabName

protected string _overridePrefabName

Field Value

string

_particleSystems

protected ParticleSystem[] _particleSystems

Field Value

ParticleSystem[]

_spawnedPrefab

protected GameObject _spawnedPrefab

Field Value

GameObject

_vfxSpawned

protected bool _vfxSpawned

Field Value

bool

parameterizers

protected VFXParameterizer[] parameterizers

Field Value

VFXParameterizer[]

Properties

CFXSystem

public ContextualFxSystem CFXSystem { get; }

Property Value

ContextualFxSystem

DefaultVFXAssetName

public virtual string DefaultVFXAssetName { get; }

Property Value

string

EventType

public virtual VFXEventType EventType { get; }

Property Value

VFXEventType

Game

public GameInstance Game { get; }

Property Value

GameInstance

IsActive

public bool IsActive { get; }

Property Value

bool

SocketedFX

public List<GameObject> SocketedFX { get; }

Property Value

List<GameObject>

SpawnedPrefab

public GameObject SpawnedPrefab { get; }

Property Value

GameObject

Methods

Aggregate(ISpatialDatabaseNode)

public void Aggregate(ISpatialDatabaseNode node)

Parameters

node ISpatialDatabaseNode

AnyParticleSystemPlaying()

public bool AnyParticleSystemPlaying()

Returns

bool

CleanUp()

public virtual void CleanUp()

ClearOverridePrefabName()

public virtual void ClearOverridePrefabName()

GetAggregationAmount()

public float GetAggregationAmount()

Returns

float

GetOrientation()

public Quaternion GetOrientation()

Returns

Quaternion

GetPosition()

public Vector3 GetPosition()

Returns

Vector3

GetSocketChildNodes(Transform, ref List<GameObject>)

public void GetSocketChildNodes(Transform parent, ref List<GameObject> childNodes)

Parameters

parent Transform
childNodes List<GameObject>

GetUseSocketLocations()

public virtual bool GetUseSocketLocations()

Returns

bool

Instantiate(GameObject, FXContextData)

public virtual void Instantiate(GameObject prefab, FXContextData contextData)

Parameters

prefab GameObject
contextData FXContextData

PlayParticleSystems()

public void PlayParticleSystems()

SelectPrefab(FXContextData)

public virtual string SelectPrefab(FXContextData context)

Parameters

context FXContextData

Returns

string

SetOverridePrefabName(string)

public virtual void SetOverridePrefabName(string name)

Parameters

name string

Stop()

public void Stop()

StopParticleSystems(bool, ParticleSystemStopBehavior)

public void StopParticleSystems(bool withChildren, ParticleSystemStopBehavior behavior)

Parameters

withChildren bool
behavior ParticleSystemStopBehavior

Tick(FXContextData)

public virtual void Tick(FXContextData context)

Parameters

context FXContextData

UpdateLocation(Vector3d, Quaternion)

public virtual void UpdateLocation(Vector3d position, Quaternion orientation)

Parameters

position Vector3d
orientation Quaternion

UpdateParameterizers()

public void UpdateParameterizers()