This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ImplicitInheritance | |
{ | |
class DerivedSimObject : SimObject | |
{ | |
public DerivedSimObject(int ID) | |
: base(ID) | |
{ | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SimSet setInst = (dynamic)new ObjectInstance("SimSet", "TestObject1") | |
{ | |
Values = | |
{ | |
Fish1 = "TestVal" | |
} | |
}; | |
SimObject inst = (dynamic)new ObjectInstance("SimObject", "TestObject2") | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DynamicSimSet dynInst = (dynamic)new ObjectInstance("SimSet", "TestObject3") | |
{ | |
Dynamics = | |
{ | |
Fish1 = "TestVal" | |
} | |
}; | |
DynamicSimObject dynSim = (dynamic)new SimObjectInstance("TestObject4") | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SimSet setInst = (dynamic)new ObjectInstance("SimSet", "TestObject1") | |
{ | |
Dynamics = | |
{ | |
Fish1 = "TestVal" | |
} | |
}; | |
SimObject inst = (dynamic)new SimObjectInstance("TestObject2") | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//----------------------------------------------------------------------------- | |
// Update particles | |
//----------------------------------------------------------------------------- | |
void ParticleSystem::simulate(U32 ms) | |
{ | |
// TODO: Prefetch | |
if (Con::getBoolVariable("$ParticleSystem::ParticleLOD")) | |
{ | |
if (mSkipUpdateCount < 1000) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set max="5x1" | |
set c1="x1 < 2" | |
set x2="x1 > 1" | |
java -jar LP.jar solve %max% %c1% %c2% | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
solve -765x1-2095x2-800x3-1428x4-7590x5-1560x6-3571x7 | |
z=167000x1+1507000x2+355000x3+392000x4+3700000x5+167000x6+215000x7 | |
1000z>10000000 | |
c=500x1+6500x2+18300x3+19000x4+11500x7 | |
f=4800x1+58000x2+300x3+300x4+100000x5+9000x6+600x7 | |
17000c>550z | |
17000c<600z | |
38000f>200z | |
38000f<300z | |
1000x1>2500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Tween.h" | |
#include "T3D\gameBase\gameBase.h" | |
IMPLEMENT_CONOBJECT(Tween); | |
//------------------------------------------- | |
// Tween | |
//------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "FXProjectile.h" | |
#include "T3D/shapeBase.h" | |
#include "T3D/physics/physicsWorld.h" | |
#include "core/stream/bitStream.h" | |
#include "sim\netConnection.h" | |
#include "math\mathIO.h" | |
IMPLEMENT_CO_DATABLOCK_V1(FXProjectileData); | |
IMPLEMENT_CO_NETOBJECT_V1(FXProjectile); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "BezierProjectile.h" | |
#include "T3D/shapeBase.h" | |
#include "core/stream/bitStream.h" | |
#include "sim/netConnection.h" | |
IMPLEMENT_CO_DATABLOCK_V1(BezierProjectileData); | |
IMPLEMENT_CO_NETOBJECT_V1(BezierProjectile); | |
//-------------------------------------------- |