forked from FAForever/fa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCore.lua
More file actions
334 lines (268 loc) · 6.86 KB
/
Core.lua
File metadata and controls
334 lines (268 loc) · 6.86 KB
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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
---Module: Core
-- @module Core
---
-- Create a target object
function AITarget()
end
---
-- base = Basename(fullPath,stripExtension?) -- return the last component of a path
function Basename(fullPath, stripExtension?)
end
---
-- Begin logging stats
function BeginLoggingStats()
end
---
--
function BlueprintLoaderUpdateProgress()
end
---
-- create an empty prefetch set
function CreatePrefetchSet()
end
---
-- thread=CurrentThread() -- get a handle to the running thread for later use with ResumeThread() or KillThread()
function CurrentThread()
end
---
-- base = Dirname(fullPath) -- return a path with trailing filename removed
function Dirname(fullPath)
end
---
-- files = DiskFindFiles(directory, pattern)returns a list of files in a directory
function DiskFindFiles(directory, pattern)
end
---
-- info = DiskGetFileInfo(filename)returns a table describing the given file, or false if the file doesn't exist.
function DiskGetFileInfo(filename)
end
---
-- localPath = DiskToLocal(SysOrLocalPath)Converts a system path to a local path. Leaves path alone if already local.
function DiskToLocal(SysOrLocalPath)
end
---
-- EndLoggingStats(bool exit) - End logging stats and optionally exit app
function EndLoggingStats(bool exit)
end
---
-- Test for an empty category
function EntityCategoryEmpty()
end
---
-- Get a list of units blueprint names from a category
function EntityCategoryGetUnitList()
end
---
-- table EnumColorNames() - returns a table containing strings of all the color names
function EnumColorNames()
end
---
-- quaternion EulerToQuaternion(float roll, float pitch, float yaw) - converts euler angles to a quaternion
function EulerToQuaternion(float roll, float pitch, float yaw)
end
---
-- path = FileCollapsePath(fullPath) -- collapse out any intermediate /./ or /../ directory names from a path
function FileCollapsePath(fullPath)
end
---
-- thread = ForkThread(function, ...)Spawns a new thread running the given function with the given args.
function ForkThread(function, ...)
end
---
-- cue,bank = GetCueBank(params)
function GetCueBank(params)
end
---
-- GetMovieDuration(localFileName)
function GetMovieDuration(localFileName)
end
---
-- GetVersion() -> string
function GetVersion()
end
---
-- Has the c++ object been destroyed?
function IsDestroyed()
end
---
-- KillThread(thread) -- destroy a thread started with ForkThread()
function KillThread(thread)
end
--- Print a log message
-- @param TextOne Log message
-- @param TextTwo Optional text
-- Output: "INFO: TextOne\000TextTwo"
function LOG('TextOne','TextTwo')
end
---
-- Round a number to the nearest integer
function MATH_IRound()
end
---
-- MATH_Lerp(s, a, b) or MATH_Lerp(s, sMin, sMax, a, b) -> number -- linear interpolation from a (at s=0 or s=sMin) to b (at s=1 or s=sMax)
function MATH_Lerp(s, a, b)
end
---
-- quaternion MinLerp(float alpha, quaternion L, quaternion R) - returns minimal lerp between L and R
function MinLerp(float alpha, quaternion L, quaternion R)
end
---
-- quaternion MinSlerp(float alpha, quaternion L, quaternion R) - returns minimal slerp between L and R
function MinSlerp(float alpha, quaternion L, quaternion R)
end
---
-- quaternion OrientFromDir(vector)
function OrientFromDir(vector)
end
---
-- Create a point vector(px,py,pz, vx,vy,vz)
function PointVector()
end
---
-- RPCSound({cue,bank,cutoff}) - Make a sound parameters object
function RPCSound({cue, bank, cutoff})
end
---
-- Create a 2d Rectangle (x0,y0,x1,y1)
function Rect()
end
---
-- BeamBlueprint { spec } - define a beam effect
function RegisterBeamBlueprint()
end
---
-- EmitterBlueprint { spec } - define a particle emitter
function RegisterEmitterBlueprint()
end
---
-- MeshBlueprint { spec } - define mesh properties
function RegisterMeshBlueprint()
end
---
-- ProjectileBlueprint { spec } - define a type of projectile
function RegisterProjectileBlueprint()
end
---
-- PropBlueprint { spec } - define a type of prop
function RegisterPropBlueprint()
end
---
-- TrailEmitterBlueprint { spec } - define a polytrail emitter
function RegisterTrailEmitterBlueprint()
end
---
-- UnitBlueprint { spec } - define a type of unit
function RegisterUnitBlueprint()
end
---
-- ResumeThread(thread) -- resume a thread that had been suspended with SuspendCurrentThread(). Does nothing if the thread wasn't suspended.
function ResumeThread(thread)
end
--- Print a debug message
-- @param TextOne Debug message
-- @param TextTwo Optional text
-- Output: "DEBUG: TextOne\000TextTwo"
function SPEW('TextOne','TextTwo')
end
---
-- table STR_GetTokens(string,delimiter)
function STR_GetTokens(string, delimiter)
end
---
-- int STR_Utf8Len(string) - return the number of characters in a UTF-8 string
function STR_Utf8Len(string)
end
---
-- string STR_Utf8SubString(string, start, count) - return a substring from start to count
function STR_Utf8SubString(string, start, count)
end
---
-- string STR_itox(int) - converts an integer into a hexidecimal string
function STR_itox(int)
end
---
-- int STR_xtoi(string) - converts a hexidecimal string to an integer
function STR_xtoi(string)
end
---
-- SecondsPerTick() - Return how many seconds in a tick
function SecondsPerTick()
end
---
-- Sound({cue,bank,cutoff}) - Make a sound parameters object
function Sound({cue, bank, cutoff})
end
---
-- SpecFootprints { spec } -- define the footprint types for pathfinding
function SpecFootprints()
end
---
-- SuspendCurrentThread() -- suspend this thread indefinitely. Some external event must eventually call ResumeThread() to resume it.
function SuspendCurrentThread()
end
---
-- Trace(true) -- turns on debug tracingTrace(false) -- turns it off again
function Trace(true)
end
---
-- Addition of two vectors
function VAdd()
end
---
-- Difference of two vectors
function VDiff()
end
---
-- Distance between two 2d points (x1,y1,x2,y2)
function VDist2()
end
---
-- Square of Distance between two 2d points (x1,y1,x2,y2)
function VDist2Sq()
end
---
-- Distance between two 3d points (v1,v2)
function VDist3()
end
---
-- Square of Distance between two 3d points (v1,v2)
function VDist3Sq()
end
---
-- Dot product of two vectors
function VDot()
end
---
-- Multiplication of vector with scalar
function VMult()
end
---
-- Perp dot product of two vectors
function VPerpDot()
end
---
-- Create a vector (x,y,z)
function Vector()
end
---
-- Create a vector (x,y)
function Vector2()
end
--- Print a warning message
-- @param TextOne Warning message
-- @param TextTwo Optional text
-- Output: "WARNING: TextOne\000TextTwo"
function WARN('TextOne','TextTwo')
end
---
-- WaitFor(event) -- suspend this thread until the event is set
function WaitFor(event)
end
---
-- doscript(script, [env]) -- run another script. The environment table, if given, will be used for the script's global variables.
function doscript(script, [env])
end
---
-- exists(name) -> bool -- returns true if the given resource file exists
function exists(name)
end