Class BulletManager.SimpleBulletControls
Bullet controls for use with the bullet-control
SM command. These deal with simple bullets.
All controls have a cond
argument, which is a filtering condition. The control only affects bullets for which the condition is satisfied.
Inheritance
Inherited Members
Namespace: Danmaku
Assembly: cs.temp.dll.dll
Syntax
public static class SimpleBulletControls
Methods
Batch(ExPred, SBCFp[])
Batch several controls together under a single condition.
This is useful primarily when restyle
or cull
is combined with other conditions.
Declaration
public static SBCFp Batch(ExPred cond, SBCFp[] over)
Parameters
Type | Name | Description |
---|---|---|
ExPred | cond | |
Danmaku.SBCFp[] | over |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
Copy(String, ExPred)
Copy a bullet into another pool.
Declaration
public static SBCFp Copy(string style, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
System.String | style | Copied style |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
CopyNull(String, ExPred)
Copy (nondestructively) a bullet into another pool, with no movement.
Declaration
public static SBCFp CopyNull(string style, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
System.String | style | Copied style |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
Cull(ExPred)
Destroy bullets.
Declaration
public static SBCFp Cull(ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
DT(ExSBF, ExPred)
Add to the time of bullets.
Declaration
public static SBCFp DT(ExSBF by, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
ExSBF | by | Delta time |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
DX(ExSBF, ExPred)
Add to the x-position of bullets. Useful for teleporting around the sides.
Declaration
public static SBCFp DX(ExSBF by, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
ExSBF | by | Delta position |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
DY(ExSBF, ExPred)
Add to the y-position of bullets. Useful for teleporting around the sides.
Declaration
public static SBCFp DY(ExSBF by, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
ExSBF | by | Delta position |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
Event(Events.Event0, ExPred)
Execute an event if the condition is satisfied.
Declaration
public static SBCFp Event(Events.Event0 ev, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
Events.Event0 | ev | |
ExPred | cond |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
FlipX(ExPred)
Flip the X-velocity of bullets. Use FlipXGT(ExSBF, ExPred), etc instead for flipping against walls.
Declaration
public static SBCFp FlipX(ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
FlipXGT(ExSBF, ExPred)
Flip the x-velocity and x-position of bullets around a wall on the right.
Declaration
public static SBCFp FlipXGT(ExSBF wall, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
ExSBF | wall | X-position of wall |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
FlipXLT(ExSBF, ExPred)
Flip the x-velocity and x-position of bullets around a wall on the left.
Declaration
public static SBCFp FlipXLT(ExSBF wall, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
ExSBF | wall | X-position of wall |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
FlipY(ExPred)
Flip the Y-velocity of bullets. Use FlipXGT(ExSBF, ExPred), etc instead for flipping against walls.
Declaration
public static SBCFp FlipY(ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
FlipYGT(ExSBF, ExPred)
Flip the y-velocity and y-position of bullets around a wall on the top.
Declaration
public static SBCFp FlipYGT(ExSBF wall, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
ExSBF | wall | Y-position of wall |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
FlipYLT(ExSBF, ExPred)
Flip the y-velocity and y-position of bullets around a wall on the bottom.
Declaration
public static SBCFp FlipYLT(ExSBF wall, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
ExSBF | wall | Y-position of wall |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
Force(ExPred, VTP)
Add external velocity to bullets. Note that position-based movement (offset, polar) will probably not work properly with this.
Declaration
public static SBCFp Force(ExPred cond, VTP path)
Parameters
Type | Name | Description |
---|---|---|
ExPred | cond | Filter condition |
VTP | path | External velocity |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
Freeze(ExPred)
Freeze an object. It will still collide but it will not move.
Note: the semantics of this are slightly different from BehCF.Freeze.
This function will run the update loop with a deltaTime of zero, so offset-based
movement functions dependent on public hoisting may still cause movements.
Declaration
public static SBCFp Freeze(ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
ExPred | cond |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
Restyle(String, ExPred)
Change the style of bullets. Similar to copy, but the original is destroyed.
Declaration
public static SBCFp Restyle(string target, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
System.String | target | New style |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
RestyleEffect(String, String, ExPred)
Restyle a bullet and summon a softcull effect.
Declaration
public static SBCFp RestyleEffect(string copyStyle, string softcullStyle, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
System.String | copyStyle | Copied style |
System.String | softcullStyle | Softcull style |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
SaveF((ReflectEx.Hoist<Single> target, ExBPY indexer, ExSBF valuer)[], ExPred)
Save float values in public data hoisting.
Note: This is automatically called by the GuideEmpty function.
You should not need to use this yourself.
Declaration
public static SBCFp SaveF((ReflectEx.Hoist<float> target, ExBPY indexer, ExSBF valuer)[] targets, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<ReflectEx.Hoist<System.Single>, ExBPY, ExSBF>[] | targets | Several target, index, value tuples to save |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
SaveF_noexpr((ReflectEx.Hoist<Single> target, BPY indexer, SBF valuer)[], Pred)
Declaration
public static SBCFp SaveF_noexpr((ReflectEx.Hoist<float> target, BPY indexer, SBF valuer)[] targets, Pred cond)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<ReflectEx.Hoist<System.Single>, BPY, SBF>[] | targets | |
Pred | cond |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
SaveV2((ReflectEx.Hoist<Vector2> target, ExBPY indexer, ExSBV2 valuer)[], ExPred)
Save vector2 values in public data hoisting.
Note: This is automatically called by the GuideEmpty function.
You should not need to use this yourself.
Declaration
public static SBCFp SaveV2((ReflectEx.Hoist<Vector2> target, ExBPY indexer, ExSBV2 valuer)[] targets, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<ReflectEx.Hoist<Vector2>, ExBPY, ExSBV2>[] | targets | Several target, index, value tuples to save |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
SaveV2_noexpr((ReflectEx.Hoist<Vector2> target, BPY indexer, SBV2 valuer)[], Pred)
Declaration
public static SBCFp SaveV2_noexpr((ReflectEx.Hoist<Vector2> target, BPY indexer, SBV2 valuer)[] targets, Pred cond)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<ReflectEx.Hoist<Vector2>, BPY, SBV2>[] | targets | |
Pred | cond |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
SFX(String, ExPred)
Create a sound effect.
Declaration
public static SBCFp SFX(string sfx, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
System.String | sfx | Sound effect |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
Slowdown(ExSBF, ExPred)
Change the throttling of bullets.
Declaration
public static SBCFp Slowdown(ExSBF by, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
ExSBF | by | Speedup ratio (1 = no effect, 2 = twice as fast, 0 = frozen, -1 = backwards) |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
SM(Pred, StateMachine)
If the condition is true, spawn an iNode at the position and run an SM on it.
Declaration
public static SBCFp SM(Pred cond, StateMachine target)
Parameters
Type | Name | Description |
---|---|---|
Pred | cond | |
StateMachine | target |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
Softcull(String, ExPred)
Change the bullets into a softcull-type bullet rather than destroying them directly.
Declaration
public static SBCFp Softcull(string target, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
System.String | target | New style |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
Softcull_noexpr(String, Pred)
Softcull but without expressions. Used internally for runtime bullet controls.
Declaration
public static SBCFp Softcull_noexpr(string target, Pred cond)
Parameters
Type | Name | Description |
---|---|---|
System.String | target | |
Pred | cond |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
Time(ExSBF, ExPred)
Set the time of bullets.
Declaration
public static SBCFp Time(ExSBF time, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
ExSBF | time | Time to set |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
UpdateF((String target, ExSBF valuer)[], ExPred)
Update existing float values in the private data hoisting for the bullet.
Declaration
public static SBCFp UpdateF((string target, ExSBF valuer)[] targets, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<System.String, ExSBF>[] | targets | |
ExPred | cond |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
UpdateV2((String target, ExSBV2 valuer)[], ExPred)
Update existing V2 values in the private data hoisting for the bullet.
Declaration
public static SBCFp UpdateV2((string target, ExSBV2 valuer)[] targets, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<System.String, ExSBV2>[] | targets | |
ExPred | cond |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
X(ExSBF, ExPred)
Set the x-position of bullets.
Declaration
public static SBCFp X(ExSBF x, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
ExSBF | x | C value |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |
Y(ExSBF, ExPred)
Set the y-position of bullets.
Declaration
public static SBCFp Y(ExSBF y, ExPred cond)
Parameters
Type | Name | Description |
---|---|---|
ExSBF | y | Y value |
ExPred | cond | Filter condition |
Returns
Type | Description |
---|---|
Danmaku.SBCFp |