Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Public Attributes | Properties | List of all members
DestructibleBuilding.CollapsibleObject Class Reference

Public Types

enum  Behaviour { Behaviour.Disable, Behaviour.Collapse }
 

Public Member Functions

void Collapse (DestructibleBuilding host)
 
void Init ()
 
void Load (ConfigNode node)
 
void Repair (DestructibleBuilding host)
 
void Reset ()
 
void Save (ConfigNode node)
 
void SetDestroyed (bool st)
 

Public Attributes

Behaviour collapseBehaviour = Behaviour.Disable
 
float collapseDuration = 0f
 Length of the collapse transition. For Disable behaviour, this is the delay before disabling. More...
 
GameObject collapseObject
 
Vector3 collapseOffset = Vector3.zero
 The end position to collapse towards (offset in local space). More...
 
Vector3 collapseTiltMax = Vector3.zero
 The max angles (in degrees) to tilt the object as it collapses (direction is random along the possible axes, towards negative or positive range) More...
 
float repairDuration = 0f
 Length of the repait transition More...
 
float replaceDelay = 1f
 If a replacement object is defined, this is the time to wait before bringing in the replacement. More...
 
GameObject replacementObject
 
VFXSequencer SecondaryFXPrefab
 A secondary sequence of sounds and visual effects to be triggered, only if this collapsible object is still uncolapsed (use for shared effects). More...
 
DestructibleBuilding sharedWith
 

Properties

bool setup [get]
 

Member Enumeration Documentation

Enumerator
Disable 
Collapse 

Member Function Documentation

void DestructibleBuilding.CollapsibleObject.Collapse ( DestructibleBuilding  host)
inline
void DestructibleBuilding.CollapsibleObject.Init ( )
inline
void DestructibleBuilding.CollapsibleObject.Load ( ConfigNode  node)
inline
void DestructibleBuilding.CollapsibleObject.Repair ( DestructibleBuilding  host)
inline
void DestructibleBuilding.CollapsibleObject.Reset ( )
inline
void DestructibleBuilding.CollapsibleObject.Save ( ConfigNode  node)
inline
void DestructibleBuilding.CollapsibleObject.SetDestroyed ( bool  st)
inline

Member Data Documentation

Behaviour DestructibleBuilding.CollapsibleObject.collapseBehaviour = Behaviour.Disable
float DestructibleBuilding.CollapsibleObject.collapseDuration = 0f

Length of the collapse transition. For Disable behaviour, this is the delay before disabling.

GameObject DestructibleBuilding.CollapsibleObject.collapseObject
Vector3 DestructibleBuilding.CollapsibleObject.collapseOffset = Vector3.zero

The end position to collapse towards (offset in local space).

Vector3 DestructibleBuilding.CollapsibleObject.collapseTiltMax = Vector3.zero

The max angles (in degrees) to tilt the object as it collapses (direction is random along the possible axes, towards negative or positive range)

float DestructibleBuilding.CollapsibleObject.repairDuration = 0f

Length of the repait transition

float DestructibleBuilding.CollapsibleObject.replaceDelay = 1f

If a replacement object is defined, this is the time to wait before bringing in the replacement.

GameObject DestructibleBuilding.CollapsibleObject.replacementObject
VFXSequencer DestructibleBuilding.CollapsibleObject.SecondaryFXPrefab

A secondary sequence of sounds and visual effects to be triggered, only if this collapsible object is still uncolapsed (use for shared effects).

DestructibleBuilding DestructibleBuilding.CollapsibleObject.sharedWith

Property Documentation

bool DestructibleBuilding.CollapsibleObject.setup
get

The documentation for this class was generated from the following file: