-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDeviceData.lua
438 lines (342 loc) · 8.6 KB
/
DeviceData.lua
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
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
--- @meta
--- @class DeviceData Turbo Stores shared data for devices (used in iso and item)
--- @field public class any
--- @implement Cloneable
DeviceData = {};
------------------------------------
------------- METHODS --------------
------------------------------------
--- @public
--- @return void
function DeviceData:StartPlayMedia() end
--- @public
--- @return void
function DeviceData:StopPlayMedia() end
--- @public
--- @param listening boolean
--- @return void
function DeviceData:TriggerPlayerListening(listening) end
--- @public
--- @param bat DrainableComboItem
--- @return void
function DeviceData:addBattery(bat) end
--- @public
--- @param headphones InventoryItem
--- @return void
function DeviceData:addHeadphones(headphones) end
--- @public
--- @param media InventoryItem
--- @return void
function DeviceData:addMediaItem(media) end
--- @public
--- @return boolean
function DeviceData:canBePoweredHere() end
--- @public
--- @return void
function DeviceData:cleanSoundsAndEmitter() end
--- @public
--- @param p DevicePresets
--- @return void
function DeviceData:cloneDevicePresets(p) end
--- @public
--- @param distance float
--- @return void
function DeviceData:doReceiveMPSignal(distance) end
--- @public
--- @param distance int
--- @return void
function DeviceData:doReceiveSignal(distance) end
--- @public
--- @return void
function DeviceData:generatePresets() end
--- @public
--- @return float
function DeviceData:getBaseVolumeRange() end
--- @public
--- @param inventory ItemContainer
--- @return InventoryItem
function DeviceData:getBattery(inventory) end
--- @public
--- @return int
function DeviceData:getChannel() end
--- @public
--- @return DeviceData
function DeviceData:getClone() end
--- @public
--- @return String
function DeviceData:getDeviceName() end
--- @public
--- @return DevicePresets
function DeviceData:getDevicePresets() end
--- @public
--- @return int
function DeviceData:getDeviceSoundVolumeRange() end
--- @public
--- @return float
function DeviceData:getDeviceVolume() end
--- @public
--- @return int
function DeviceData:getDeviceVolumeRange() end
--- @public
--- @return BaseSoundEmitter
function DeviceData:getEmitter() end
--- @public
--- @return boolean
function DeviceData:getHasBattery() end
--- @public
--- @return int
function DeviceData:getHeadphoneType() end
--- @public
--- @param inventory ItemContainer
--- @return InventoryItem
function DeviceData:getHeadphones(inventory) end
--- @public
--- @return boolean
function DeviceData:getIsBatteryPowered() end
--- @public
--- @return boolean
function DeviceData:getIsHighTier() end
--- @public
--- @return boolean
function DeviceData:getIsPortable() end
--- @public
--- @return boolean
function DeviceData:getIsTelevision() end
--- @public
--- @return boolean
function DeviceData:getIsTurnedOn() end
--- @public
--- @return boolean
function DeviceData:getIsTwoWay() end
--- @public
--- @return int
function DeviceData:getLastRecordedDistance() end
--- @public
--- @return int
function DeviceData:getMaxChannelRange() end
--- @public
--- @return MediaData
function DeviceData:getMediaData() end
--- @public
--- @return short
function DeviceData:getMediaIndex() end
--- @public
--- @return byte
function DeviceData:getMediaType() end
--- @public
--- @return boolean
function DeviceData:getMicIsMuted() end
--- @public
--- @return int
function DeviceData:getMicRange() end
--- @public
--- @return int
function DeviceData:getMinChannelRange() end
--- @public
--- @return WaveSignalDevice
function DeviceData:getParent() end
--- @public
--- @return float
function DeviceData:getPower() end
--- @public
--- @return int
function DeviceData:getTransmitRange() end
--- @public
--- @return float
function DeviceData:getUseDelta() end
--- @public
--- @return boolean
function DeviceData:hasMedia() end
--- @public
--- @return boolean
function DeviceData:isInventoryDevice() end
--- @public
--- @return boolean
function DeviceData:isIsoDevice() end
--- @public
--- @return boolean
function DeviceData:isNoTransmit() end
--- @public
--- @return boolean
function DeviceData:isPlayingMedia() end
--- @public
--- @return boolean
function DeviceData:isReceivingSignal() end
--- @public
--- @return boolean
function DeviceData:isVehicleDevice() end
--- @public
--- @param input ByteBuffer
--- @param WorldVersion int
--- @param net boolean
--- @return void
function DeviceData:load(input, WorldVersion, net) end
--- @public
--- @param soundname String
--- @param volume float
--- @param transmit boolean
--- @return void
function DeviceData:playSound(soundname, volume, transmit) end
--- @public
--- @param soundname String
--- @param useDeviceVolume boolean
--- @return void
function DeviceData:playSoundLocal(soundname, useDeviceVolume) end
--- @public
--- @param soundname String
--- @param useDeviceVolume boolean
--- @return void
function DeviceData:playSoundSend(soundname, useDeviceVolume) end
--- @public
--- @param bb ByteBuffer
--- @param ignoreConnection UdpConnection
--- @return void
function DeviceData:receiveDeviceDataStatePacket(bb, ignoreConnection) end
--- @public
--- @param inventory ItemContainer
--- @return InventoryItem
function DeviceData:removeMediaItem(inventory) end
--- @public
--- @param output ByteBuffer
--- @param net boolean
--- @return void
function DeviceData:save(output, net) end
--- @public
--- @param f float
--- @return void
function DeviceData:setBaseVolumeRange(f) end
--- @public
--- @param c int
--- @return void
--- @overload fun(self: DeviceData, chan: int, setislistening: boolean): void
function DeviceData:setChannel(c) end
--- @public
--- @param chan int
--- @return void
function DeviceData:setChannelRaw(chan) end
--- @public
--- @param name String
--- @return void
function DeviceData:setDeviceName(name) end
--- @public
--- @param p DevicePresets
--- @return void
function DeviceData:setDevicePresets(p) end
--- @public
--- @param f float
--- @return void
function DeviceData:setDeviceVolume(f) end
--- @public
--- @param f float
--- @return void
function DeviceData:setDeviceVolumeRaw(f) end
--- @public
--- @param b boolean
--- @return void
function DeviceData:setHasBattery(b) end
--- @public
--- @param i int
--- @return void
function DeviceData:setHeadphoneType(i) end
--- @public
--- @return void
function DeviceData:setInitialPower() end
--- @public
--- @param b boolean
--- @return void
function DeviceData:setIsBatteryPowered(b) end
--- @public
--- @param b boolean
--- @return void
function DeviceData:setIsHighTier(b) end
--- @public
--- @param b boolean
--- @return void
function DeviceData:setIsPortable(b) end
--- @public
--- @param b boolean
--- @return void
function DeviceData:setIsTelevision(b) end
--- @public
--- @param b boolean
--- @return void
function DeviceData:setIsTurnedOn(b) end
--- @public
--- @param b boolean
--- @return void
function DeviceData:setIsTwoWay(b) end
--- @public
--- @param i int
--- @return void
function DeviceData:setMaxChannelRange(i) end
--- @public
--- @param mediaIndex short
--- @return void
function DeviceData:setMediaIndex(mediaIndex) end
--- @public
--- @param mediaType byte
--- @return void
function DeviceData:setMediaType(mediaType) end
--- @public
--- @param b boolean
--- @return void
function DeviceData:setMicIsMuted(b) end
--- @public
--- @param i int
--- @return void
function DeviceData:setMicRange(i) end
--- @public
--- @param i int
--- @return void
function DeviceData:setMinChannelRange(i) end
--- @public
--- @param noTransmit boolean
--- @return void
function DeviceData:setNoTransmit(noTransmit) end
--- @public
--- @param p WaveSignalDevice
--- @return void
function DeviceData:setParent(p) end
--- @public
--- @param p float
--- @return void
function DeviceData:setPower(p) end
--- @public
--- @return void
function DeviceData:setRandomChannel() end
--- @public
--- @param range int
--- @return void
function DeviceData:setTransmitRange(range) end
--- @public
--- @param b boolean
--- @return void
function DeviceData:setTurnedOnRaw(b) end
--- @public
--- @param f float
--- @return void
function DeviceData:setUseDelta(f) end
--- @public
--- @return void
function DeviceData:transmitBattryChange() end
--- @public
--- @return void
function DeviceData:transmitPresets() end
--- @public
--- @param isIso boolean
--- @param playerInRange boolean
--- @return void
function DeviceData:update(isIso, playerInRange) end
--- @public
--- @return void
function DeviceData:updateMediaPlaying() end
--- @public
--- @return void
function DeviceData:updateSimple() end
------------------------------------
----------- CONSTRUCTOR ------------
------------------------------------
--- @public
--- @return DeviceData
--- @overload fun(parent: WaveSignalDevice): DeviceData
function DeviceData.new() end