-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFunctions.BBB.cs
252 lines (216 loc) · 5.77 KB
/
Functions.BBB.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
#nullable enable
using System.Numerics;
public static partial class Functions
{
[BBFunc]
public static void If(
[BBParam("Var", "VarTable", null, null)]
object src1,
[BBParam(null, null, "", "ByLevel")]
object/*?*/ value1,
CompareOp compareOp,
[BBParam("Var", "VarTable", null, null)]
object/*?*/ src2,
[BBParam(null, null, "", "ByLevel")]
object/*?*/ value2,
[BBSubBlocksAttribute]
Action/*?*/ subBlocks/* = null*/
){}
[BBFunc]
public static T SetVarInTable<T>(
[BBParam("Var", "VarTable", "Value", "ValueByLevel")]
T src
){
return src;
}
[BBFunc]
public static float Math(
[BBParam("Var", "VarTable", "Value", "ValueByLevel")]
float src1,
object mathOp,
[BBParam("Var", "VarTable", "Value", "ValueByLevel")]
float src2
){
return default!;
}
[BBFunc]
public static void SetStatus(
Action<AttackableUnit, bool> status,
AttackableUnit target,
[BBParam("Var", "VarTable", "Value", "ValueByLevel")]
bool src
){
status(target, src);
}
[BBFunc]
public static void Else(
[BBSubBlocksAttribute]
Action/*?*/ subBlocks/* = null*/
){}
[BBFunc]
public static object GetSlotSpellInfo<T>(
Func<AttackableUnit, int, SpellbookType, SpellSlotType, T> function,
ObjAIBase owner,
[BBParam("Var", "VarTable", "Value", "ValueByLevel")]
int spellSlot,
SpellbookType spellbookType,
SpellSlotType slotType
){
return function(owner, spellSlot, spellbookType, slotType)!; // Union<string, float>
}
[BBFunc]
public static void RequireVar(
object/*?*/ required
){}
[BBFunc]
public static void IncStat(
Action<AttackableUnit, float> stat,
AttackableUnit target,
float delta
){}
[BBFunc]
public static void IfHasBuff(
AttackableUnit owner,
AttackableUnit attacker,
[BBBuffName] string buffName,
[BBSubBlocksAttribute]
Action/*?*/ subBlocks/* = null*/
){}
[BBFunc]
public static void ElseIf(
[BBParam("Var", "VarTable", null, null)]
object src1,
[BBParam(null, null, "", "ByLevel")]
object/*?*/ value1,
CompareOp compareOp,
[BBParam("Var", "VarTable", null, null)]
object/*?*/ src2,
[BBParam(null, null, "", "ByLevel")]
object/*?*/ value2,
[BBSubBlocksAttribute]
Action/*?*/ subBlocks/* = null*/
){}
[BBFunc]
public static float GetStat(
Func<AttackableUnit, float> stat,
AttackableUnit target
){
return default!;
}
[BBFunc]
public static void ExecutePeriodically(
float timeBetweenExecutions,
ref float trackTime,
bool executeImmediately/* = false*/,
float tickTime/* = 0*/,
[BBSubBlocksAttribute]
Action/*?*/ subBlocks/* = null*/
){}
[BBFunc]
public static void BreakSpellShields(
AttackableUnit target
){}
[BBFunc]
public static void SetReturnValue(
[BBParam("Var", "VarTable", "Value", "ValueByLevel")]
object src
){}
[BBFunc]
public static float GetPAROrHealth(
Func<AttackableUnit/*, PrimaryAbilityResourceType*/, float> function,
AttackableUnit owner,
PrimaryAbilityResourceType PARType
){
return function(owner/*, PARType*/);
}
[BBFunc]
public static void IfNotHasBuff(
AttackableUnit owner,
AttackableUnit caster,
[BBBuffName] string buffName,
[BBSubBlocksAttribute]
Action/*?*/ subBlocks/* = null*/
){}
[BBFunc]
public static void IncPermanentStat(
Action<AttackableUnit, float> stat,
AttackableUnit target,
float delta
){}
[BBFunc]
public static bool GetStatus(
Func<AttackableUnit, bool> status,
AttackableUnit target
){
return status(target);
}
[BBFunc]
public static int GetBuffCountFromAll(
AttackableUnit target,
[BBBuffName] string/*?*/ buffName/* = null*/
){
return default!;
}
[BBFunc]
public static float DistanceBetweenObjects(
object objectVar1,
object objectVar2
){
return default!;
}
[BBFunc]
public static void SpellBuffRemoveStacks(
AttackableUnit target,
AttackableUnit attacker,
[BBBuffName] string buffName,
int numStacks
){}
[BBFunc]
public static T GetCastInfo<T>(
Func<T> info
){
return default!; // Union<string, float>
}
[BBFunc]
public static int GetBuffCountFromCaster(
AttackableUnit target,
AttackableUnit/*?*/ caster,
[BBBuffName] string buffName
){
return default!;
}
[BBFunc]
public static float GetTime(){
return default!;
}
[BBFunc]
public static void While(
[BBParam("Var", "VarTable", null, null)]
object src1,
[BBParam(null, null, "", "ByLevel")]
object/*?*/ value1,
CompareOp compareOp,
[BBParam("Var", "VarTable", null, null)]
object/*?*/ src2,
[BBParam(null, null, "", "ByLevel")]
object/*?*/ value2,
[BBSubBlocksAttribute]
Action/*?*/ subBlocks/* = null*/
){}
[BBFunc]
public static void IfHasBuffOfType(
AttackableUnit target,
BuffType buffType,
[BBSubBlocksAttribute]
Action/*?*/ subBlocks/* = null*/
){}
[BBFunc]
public static void BreakExecution()
{}
[BBFunc]
public static void ExecutePeriodicallyReset(
out float trackTime
){
trackTime = 0;
}
}