blob: 5aac30df8a23f29f98cded7ab95a5167e39e3edb (
plain)
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
|
------@meta
---
---
---@class vector3
---@field x number
---@field y number
---@field z number
---@operator sub(vector3): vector3
---@operator add(vector3): vector3
---@class vector4
---@field x number
---@field y number
---@field z number
---@field w number
---@operator sub(vector4): vector4
---@operator add(vector4): vector4
---@class quaternion
---@field x number
---@field y number
---@field z number
---@field w number
---@alias quat quaternion
---@class url string|hash
---@field socket string|hash
---@field path string|hash
---@field fragment string|hash
---@alias hash userdata
---@alias constant userdata
---@alias bool boolean
---@alias float number
---@alias object userdata
---@alias matrix4 userdata
---@alias node userdata
--mb use number instead of vector4
---@alias vector vector4
--luasocket
---@alias master userdata
---@alias unconnected userdata
---@alias client userdata
--render
---@alias constant_buffer userdata
---@alias render_target userdata
---@alias predicate userdata
--- Calls error if the value of its argument `v` is false (i.e., **nil** or
--- **false**); otherwise, returns all its arguments. In case of error,
--- `message` is the error object; when absent, it defaults to "assertion
--- failed!"
---@generic ANY
---@overload fun(v:any):any
---@param v ANY
---@param message string
---@return ANY
function assert(v,message) return v end
---@param self object
function init(self) end
---@param self object
---@param dt number
function update(self, dt) end
---@param self object
---@param message_id hash
---@param message table
---@param sender url
function on_message(self, message_id, message, sender) end
---@param self object
---@param action_id hash
---@param action table
function on_input(self, action_id, action) end
---@param self object
function final(self) end;
|