56 lines
1.1 KiB
C++
56 lines
1.1 KiB
C++
#include "simulation/ElementCommon.h"
|
|
#include "simulation/Air.h"
|
|
|
|
static int update(UPDATE_FUNC_ARGS);
|
|
|
|
void Element::Element_RSSS()
|
|
{
|
|
Identifier = "DEFAULT_PT_RSSS";
|
|
Name = "RSSS";
|
|
Colour = 0xC43626_rgb;
|
|
MenuVisible = 1;
|
|
MenuSection = SC_SOLIDS;
|
|
Enabled = 1;
|
|
|
|
Advection = 0.0f;
|
|
AirDrag = 0.00f * CFDS;
|
|
AirLoss = 0.90f;
|
|
Loss = 0.00f;
|
|
Collision = 0.0f;
|
|
Gravity = 0.0f;
|
|
Diffusion = 0.00f;
|
|
HotAir = 0.000f * CFDS;
|
|
Falldown = 0;
|
|
|
|
Flammable = 0;
|
|
Explosive = 0;
|
|
Meltable = 0;
|
|
Hardness = 0;
|
|
|
|
Weight = 100;
|
|
|
|
HeatConduct = 130;
|
|
Description = "Solidified resist. Blocks pressure and insulates electricity. Liquefies on contact with neutrons.";
|
|
|
|
Properties = TYPE_SOLID|PROP_NEUTPASS;
|
|
|
|
LowPressure = IPL;
|
|
LowPressureTransition = NT;
|
|
HighPressure = IPH;
|
|
HighPressureTransition = NT;
|
|
LowTemperature = ITL;
|
|
LowTemperatureTransition = NT;
|
|
HighTemperature = ITH;
|
|
HighTemperatureTransition = NT;
|
|
|
|
Update = &update;
|
|
}
|
|
|
|
static int update(UPDATE_FUNC_ARGS)
|
|
{
|
|
sim->air->bmap_blockair[y/CELL][x/CELL] = 1;
|
|
sim->air->bmap_blockairh[y/CELL][x/CELL] = 0x8;
|
|
|
|
return 0;
|
|
}
|