Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "simulation/Elements.h"
- //#TPT-Directive ElementClass Element_GLST PT_GLST 401
- Element_GLST::Element_GLST() {
- Identifier = "DEFAULT_PT_GLST";
- Name = "GLST";
- Colour = PIXPACK(0xFFFF00);
- MenuVisible = 1;
- MenuSection = 8;
- Enabled = 1;
- Advection = 0.8f;
- AirDrag = 0.01f * CFDS;
- AirLoss = 0.01f;
- Loss = 0.8f;
- Collision = 0.0f;
- Gravity = 0.6f;
- Diffusion = 0.00f;
- HotAir = 0.000f * CFDS;
- Falldown = 1;
- Flammable = 0;
- Explosive = 0;
- Meltable = 0;
- Hardness = 20;
- Weight = 100;
- Temperature = 300.0f;
- HeatConduct = 1;
- Description = "GLST ";
- Properties = TYPE_SOLID;
- LowPressure = IPL;
- LowPressureTransition = NT;
- HighPressure = IPH;
- HighPressureTransition = NT;
- LowTemperature = IPL;
- LowTemperatureTransition = NT;
- HighTemperature = 366.0f;
- HighTemperatureTransition = PT_EGLS;
- Update = &Element_GLST::update;
- Graphics = &Element_GLST::graphics;
- }
- //#TPT-Directive ElementHeader Element_GLST static int update(UPDATE_FUNC_ARGS)
- int Element_GLST::update(UPDATE_FUNC_ARGS) {
- return 0;
- }
- //#TPT-Directive ElementHeader Element_GLST static int graphics(GRAPHICS_FUNC_ARGS)
- int Element_GLST::graphics(GRAPHICS_FUNC_ARGS) {
- *colr = 204 + (rand() % 50);
- *colg = 204 + (rand() % 50);
- *colb = 0;
- return 0;
- }
- Element_GLST::~Element_GLST() {
- }
Advertisement
Add Comment
Please, Sign In to add comment