Class SyncPatterns
Functions that describe patterns performed instantaneously.
Inheritance
System.Object
SyncPatterns
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: cs.temp.dll.dll
Syntax
public static class SyncPatterns
Methods
AddTime(GCXF<Single>, SyncPattern)
Add time to summoned bullets. They will simulate the missing time and start from the specified time.
Declaration
public static SyncPattern AddTime(GCXF<float> frames, SyncPattern sp)
Parameters
Type |
Name |
Description |
GCXF<System.Single> |
frames |
|
SyncPattern |
sp |
|
Returns
Aim1(ExBPY)
Declaration
public static SyncPattern Aim1(ExBPY speed)
Parameters
Type |
Name |
Description |
ExBPY |
speed |
|
Returns
Color(String, SyncPattern)
Set the color of the fire.
Declaration
public static SyncPattern Color(string color, SyncPattern sp)
Parameters
Type |
Name |
Description |
System.String |
color |
|
SyncPattern |
sp |
|
Returns
ColorR(String, SyncPattern)
Set the color of the fire, merging wildcards in the reverse direction.
Declaration
public static SyncPattern ColorR(string color, SyncPattern sp)
Parameters
Type |
Name |
Description |
System.String |
color |
|
SyncPattern |
sp |
|
Returns
DoubleFlipX(SyncPattern)
Run the child SyncPattern twice, once without modification
and once flipping the angle over the Y-axis.
Declaration
public static SyncPattern DoubleFlipX(SyncPattern sp)
Parameters
Type |
Name |
Description |
SyncPattern |
sp |
Child SyncPattern to repeat
|
Returns
DoubleFlipXY(SyncPattern)
Run the child SyncPattern twice, once without modification
and once flipping the angle over the line Y=X.
Declaration
public static SyncPattern DoubleFlipXY(SyncPattern sp)
Parameters
Type |
Name |
Description |
SyncPattern |
sp |
Child SyncPattern to repeat
|
Returns
DoubleFlipY(SyncPattern)
Run the child SyncPattern twice, once without modification
and once flipping the angle over the X-axis.
Declaration
public static SyncPattern DoubleFlipY(SyncPattern sp)
Parameters
Type |
Name |
Description |
SyncPattern |
sp |
Child SyncPattern to repeat
|
Returns
FArrow(ExBPY, ExBPY, ExBPY, ExBPY, GenCtxProperty[], GCXU<VTP>)
Declaration
public static SyncPattern FArrow(ExBPY indexer, ExBPY n, ExBPY xStep, ExBPY yStep, GenCtxProperty[] props, GCXU<VTP> path)
Parameters
Type |
Name |
Description |
ExBPY |
indexer |
|
ExBPY |
n |
|
ExBPY |
xStep |
|
ExBPY |
yStep |
|
GenCtxProperty[] |
props |
|
GCXU<VTP> |
path |
|
Returns
GSRepeat(GenCtxProperties<SyncPattern>, SyncPattern[])
The generic S-level repeater function.
Takes any number of functionality-modifying properties as an array.
Declaration
public static SyncPattern GSRepeat(GenCtxProperties<SyncPattern> props, SyncPattern[] target)
Parameters
Type |
Name |
Description |
GenCtxProperties<SyncPattern> |
props |
Array of properties
|
SyncPattern[] |
target |
Child SyncPatterns to run
|
Returns
GSRepeat2(GCXF<Single>, GCXF<V2RV2>, GenCtxProperty[], SyncPattern[])
Like GSRepeat, but has specific handling for the TIMES and rpp properties.
Note that SyncPatterns are instantaneous and therefore the WAIT property is inapplicable.
Declaration
public static SyncPattern GSRepeat2(GCXF<float> times, GCXF<V2RV2> rpp, GenCtxProperty[] props, SyncPattern[] target)
Parameters
Type |
Name |
Description |
GCXF<System.Single> |
times |
Number of invocations
|
GCXF<V2RV2> |
rpp |
Amount to increment rv2 between invocations
|
GenCtxProperty[] |
props |
Other properties
|
SyncPattern[] |
target |
Child SyncPatterns to run
|
Returns
GSRepeat2c(GCXF<Single>, GenCtxProperty[], SyncPattern[])
Like GSRepeat, but has specific handling for the TIMES property with CIRCLE.
Note that SyncPatterns are instantaneous and therefore the WAIT property is inapplicable.
Declaration
public static SyncPattern GSRepeat2c(GCXF<float> times, GenCtxProperty[] props, SyncPattern[] target)
Parameters
Type |
Name |
Description |
GCXF<System.Single> |
times |
Number of invocations
|
GenCtxProperty[] |
props |
Other properties
|
SyncPattern[] |
target |
Child SyncPatterns to run
|
Returns
GSRepeat2dr(ExBPY, ExBPY, ExBPRV2, GenCtxProperty[], SyncPattern[])
Like GSRepeat, but has specific handling for the TIMES and rpp properties, where both are mutated by the difficulty.
Declaration
public static SyncPattern GSRepeat2dr(ExBPY difficulty, ExBPY times, ExBPRV2 rpp, GenCtxProperty[] props, SyncPattern[] target)
Parameters
Type |
Name |
Description |
ExBPY |
difficulty |
|
ExBPY |
times |
|
ExBPRV2 |
rpp |
|
GenCtxProperty[] |
props |
|
SyncPattern[] |
target |
|
Returns
GSRepeatFRV2(GCXF<Single>, GCXF<V2RV2>, GenCtxProperty[], SyncPattern[])
Like GSRepeat, but has specific handling for the TIMES and FRV2 properties.
Note that SyncPatterns are instantaneous and therefore the WAIT property is inapplicable.
Declaration
public static SyncPattern GSRepeatFRV2(GCXF<float> times, GCXF<V2RV2> frv2, GenCtxProperty[] props, SyncPattern[] target)
Parameters
Type |
Name |
Description |
GCXF<System.Single> |
times |
Number of invocations
|
GCXF<V2RV2> |
frv2 |
Local RV2 offset as a function of GCX state
|
GenCtxProperty[] |
props |
Other properties
|
SyncPattern[] |
target |
Child SyncPatterns to run
|
Returns
GuideEmpty(String, ExBPY, (String, ExTP)[], (String, ExBPY)[], GCXU<VTP>, SyncPattern[])
Set up an empty-guided fire.
Declaration
public static SyncPattern GuideEmpty(string suffix, ExBPY indexer, (string, ExTP)[] saveV2s, (string, ExBPY)[] saveFs, GCXU<VTP> emptyPath, SyncPattern[] guided)
Parameters
Type |
Name |
Description |
System.String |
suffix |
The suffix to use for underlying empty pool names. Do not overlap with any other guideempty functions. First character should be a period.
|
ExBPY |
indexer |
The indexing function applied to data hoisted on the empty bullet.
|
System.ValueTuple<System.String, ExTP>[] |
saveV2s |
Vector2 values to save on the empty bullet.
|
System.ValueTuple<System.String, ExBPY>[] |
saveFs |
Float values to save on the empty bullet.
|
GCXU<VTP> |
emptyPath |
The movement path of the empty bullet.
|
SyncPattern[] |
guided |
The child fires that follow the empty bullet. They have Loc0 applied to them.
|
Returns
GuideEmpty2(ExBPY, (String, ExTP)[], GCXU<VTP>, SyncPattern[])
GuideEmpty with a random suffix and no saved floats.
Declaration
public static SyncPattern GuideEmpty2(ExBPY indexer, (string, ExTP)[] saveV2s, GCXU<VTP> emptyPath, SyncPattern[] guided)
Parameters
Type |
Name |
Description |
ExBPY |
indexer |
|
System.ValueTuple<System.String, ExTP>[] |
saveV2s |
|
GCXU<VTP> |
emptyPath |
|
SyncPattern[] |
guided |
|
Returns
Loc0(SyncPattern)
Spawn the final bullet relative to the origin instead of the firing entity.
Also set the V2RV2 to zero and remove the effects of rotational offset.
Use this command to setup empty-guided fires.
Declaration
public static SyncPattern Loc0(SyncPattern sp)
Parameters
Returns
Loc0c(String, SyncPattern)
Spawn the final bullet relative to the origin instead of the firing entity.
Also set the V2RV2 to zero and remove the effects of rotational offset.
Also set the color of the fire.
Use this command to setup empty-guided fires.
Declaration
public static SyncPattern Loc0c(string color, SyncPattern sp)
Parameters
Type |
Name |
Description |
System.String |
color |
Color of fire
|
SyncPattern |
sp |
|
Returns
oArrowI(ExBPY, ExBPY, ExBPY, GenCtxProperty[], SyncPattern[])
Declaration
public static SyncPattern oArrowI(ExBPY times, ExBPY xstep, ExBPY ystep, GenCtxProperty[] props, SyncPattern[] inner)
Parameters
Type |
Name |
Description |
ExBPY |
times |
|
ExBPY |
xstep |
|
ExBPY |
ystep |
|
GenCtxProperty[] |
props |
|
SyncPattern[] |
inner |
|
Returns
PlayerGuideEmpty(String, ExBPY, (String, ExTP)[], (String, ExBPY)[], GCXU<VTP>, SyncPattern[])
Set up an empty-guided fire for player bullets.
Declaration
public static SyncPattern PlayerGuideEmpty(string suffix, ExBPY indexer, (string, ExTP)[] saveV2s, (string, ExBPY)[] saveFs, GCXU<VTP> emptyPath, SyncPattern[] guided)
Parameters
Type |
Name |
Description |
System.String |
suffix |
|
ExBPY |
indexer |
|
System.ValueTuple<System.String, ExTP>[] |
saveV2s |
|
System.ValueTuple<System.String, ExBPY>[] |
saveFs |
|
GCXU<VTP> |
emptyPath |
|
SyncPattern[] |
guided |
|
Returns
PSSFX(String, SyncPattern)
Play a sound effect and then run the child SyncPattern.
Declaration
public static SyncPattern PSSFX(string style, SyncPattern sp)
Parameters
Type |
Name |
Description |
System.String |
style |
Sound effect style
|
SyncPattern |
sp |
Child SyncPattern to run unchanged
|
Returns
RandomX(ExBPY, ExBPY, SyncPattern)
Equal to gsr { start rv2.rx +=f rand from to } sp
Declaration
public static SyncPattern RandomX(ExBPY from, ExBPY to, SyncPattern sp)
Parameters
Type |
Name |
Description |
ExBPY |
from |
|
ExBPY |
to |
|
SyncPattern |
sp |
|
Returns
RandomY(ExBPY, ExBPY, SyncPattern)
Equal to gsr { start rv2.ry +=f rand from to } sp
Declaration
public static SyncPattern RandomY(ExBPY from, ExBPY to, SyncPattern sp)
Parameters
Type |
Name |
Description |
ExBPY |
from |
|
ExBPY |
to |
|
SyncPattern |
sp |
|
Returns
SetP(GCXF<Single>, SyncPattern)
Declaration
public static SyncPattern SetP(GCXF<float> p, SyncPattern sp)
Parameters
Type |
Name |
Description |
GCXF<System.Single> |
p |
|
SyncPattern |
sp |
|
Returns
Target(GCXF<Vector2>, SyncPattern[])
Add the angle from the executing BehaviorEntity to the target to the child SyncPattern.
Declaration
public static SyncPattern Target(GCXF<Vector2> target, SyncPattern[] syncPattern)
Parameters
Type |
Name |
Description |
GCXF<Vector2> |
target |
Target
|
SyncPattern[] |
syncPattern |
Child SyncPattern to modify
|
Returns
TargetX(GCXF<Vector2>, SyncPattern[])
Add the X-difference from the executing BehaviorEntity to the target to the child SyncPattern.
Declaration
public static SyncPattern TargetX(GCXF<Vector2> target, SyncPattern[] syncPattern)
Parameters
Type |
Name |
Description |
GCXF<Vector2> |
target |
Target
|
SyncPattern[] |
syncPattern |
Child SyncPattern to modify
|
Returns
TargetY(GCXF<Vector2>, SyncPattern[])
Add the Y-difference from the executing BehaviorEntity to the target to the child SyncPattern.
Declaration
public static SyncPattern TargetY(GCXF<Vector2> target, SyncPattern[] syncPattern)
Parameters
Type |
Name |
Description |
GCXF<Vector2> |
target |
Target
|
SyncPattern[] |
syncPattern |
Child SyncPattern to modify
|
Returns
TreeArrow(ExBPY, ExBPY, ExBPY, ExBPY, GenCtxProperty[], GCXU<VTP>, String, GCXF<Single>, ExBPY, ExBPY, ExBPY)
Declaration
public static SyncPattern TreeArrow(ExBPY indexer, ExBPY n, ExBPY xStep, ExBPY yStep, GenCtxProperty[] props, GCXU<VTP> path, string treeColor, GCXF<float> treeXLen, ExBPY treeYLen, ExBPY treeXStep, ExBPY treeYStep)
Parameters
Type |
Name |
Description |
ExBPY |
indexer |
|
ExBPY |
n |
|
ExBPY |
xStep |
|
ExBPY |
yStep |
|
GenCtxProperty[] |
props |
|
GCXU<VTP> |
path |
|
System.String |
treeColor |
|
GCXF<System.Single> |
treeXLen |
|
ExBPY |
treeYLen |
|
ExBPY |
treeXStep |
|
ExBPY |
treeYStep |
|
Returns
World(SyncPattern)
Spawn the final bullet relative to the origin instead of the firing entity.
If the firing entity is a rotated summon, rotational offset will still apply.
Declaration
public static SyncPattern World(SyncPattern sp)
Parameters
Returns