Class CurvedTileRenderLaser.LaserControls
Repository for functions that can be applied to lasers via the bulletl-control
command.
Note lasers can also be affected by beh-control
, but these functions deal specifically with laser draw-paths.
These functions are executed at every point on the laser during its construction.
Inheritance
Inherited Members
Namespace: Danmokou.Graphics
Assembly: cs.temp.dll.dll
Syntax
public static class LaserControls
Methods
FlipXGT(Single, Pred)
Flip the x-velocity and x-position of laser paths around a wall on the right.
Declaration
public static CurvedTileRenderLaser.cLaserControl FlipXGT(float wall, Pred cond)
Parameters
Type | Name | Description |
---|---|---|
System.Single | wall | X-position of wall |
Pred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmokou.Graphics.CurvedTileRenderLaser.cLaserControl |
FlipXLT(Single, Pred)
Flip the x-velocity and x-position of laser paths around a wall on the left.
Declaration
public static CurvedTileRenderLaser.cLaserControl FlipXLT(float wall, Pred cond)
Parameters
Type | Name | Description |
---|---|---|
System.Single | wall | X-position of wall |
Pred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmokou.Graphics.CurvedTileRenderLaser.cLaserControl |
FlipYGT(Single, Pred)
Flip the y-velocity and y-position of laser paths around a wall on the top.
Declaration
public static CurvedTileRenderLaser.cLaserControl FlipYGT(float wall, Pred cond)
Parameters
Type | Name | Description |
---|---|---|
System.Single | wall | Y-position of wall |
Pred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmokou.Graphics.CurvedTileRenderLaser.cLaserControl |
FlipYLT(Single, Pred)
Flip the y-velocity and y-position of laser paths around a wall on the bottom.
Declaration
public static CurvedTileRenderLaser.cLaserControl FlipYLT(float wall, Pred cond)
Parameters
Type | Name | Description |
---|---|---|
System.Single | wall | Y-position of wall |
Pred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmokou.Graphics.CurvedTileRenderLaser.cLaserControl |
SM(LPred, StateMachine)
If the condition is true, spawn an iNode at the position and run an SM on it.
Declaration
public static CurvedTileRenderLaser.cLaserControl SM(LPred cond, StateMachine sm)
Parameters
Type | Name | Description |
---|---|---|
LPred | cond | |
Danmokou.SM.StateMachine | sm |
Returns
Type | Description |
---|---|
Danmokou.Graphics.CurvedTileRenderLaser.cLaserControl |