Show / Hide Table of Contents

Class ExplosionPrototype

Explosion Prototype. Determines damage, tile break probabilities, and visuals.

Inheritance
System.Object
ExplosionPrototype
Implements
Robust.Shared.Prototypes.IPrototype
Namespace: Content.Shared.Explosion
Assembly: Content.Shared.dll
Syntax
public sealed class ExplosionPrototype : object, IPrototype
Remarks

Does not currently support prototype hot-reloading. The explosion-intensity required to destroy airtight entities is evaluated and stored by the explosion system. Adding or removing a prototype would require updating that map of airtight entities. This could be done, but is just not yet implemented.

Fields

| Improve this Doc View Source

DamagePerIntensity

Damage to deal to entities. This is scaled by the explosion intensity.

Declaration
public DamageSpecifier DamagePerIntensity
Field Value
Type Description
DamageSpecifier
| Improve this Doc View Source

FireColor

Color used to modulate the fire texture.

Declaration
public Color? FireColor
Field Value
Type Description
System.Nullable<Color>
| Improve this Doc View Source

FireStates

Declaration
public int FireStates
Field Value
Type Description
System.Int32
| Improve this Doc View Source

IntensityPerState

How intense does the explosion have to be at a tile to advance to the next fire texture state?

Declaration
public float IntensityPerState
Field Value
Type Description
System.Single
| Improve this Doc View Source

LightColor

Color emitted by a point light at the center of the explosion.

Declaration
public Color LightColor
Field Value
Type Description
Color
| Improve this Doc View Source

Sound

Declaration
public SoundSpecifier Sound
Field Value
Type Description
Robust.Shared.Audio.SoundSpecifier
| Improve this Doc View Source

TexturePath

Declaration
public ResPath TexturePath
Field Value
Type Description
Robust.Shared.Utility.ResPath
| Improve this Doc View Source

TileBreakRerollReduction

When a tile is broken by an explosion, the intensity is reduced by this amount and is used to try and break the tile a second time. This is repeated until a roll fails or the tile has become space.

Declaration
public float TileBreakRerollReduction
Field Value
Type Description
System.Single
Remarks

If this number is too small, even relatively weak explosions can have a non-zero chance to create a space tile.

Properties

| Improve this Doc View Source

ID

Declaration
public string ID { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

TileBreakChance(Single)

Basic function for linear interpolation of the _tileBreakChance and _tileBreakIntensity arrays

Declaration
public float TileBreakChance(float intensity)
Parameters
Type Name Description
System.Single intensity
Returns
Type Description
System.Single

Implements

Robust.Shared.Prototypes.IPrototype
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾