|
2 | 2 |
|
3 | 3 | math.randomseed(get_time()) |
4 | 4 |
|
5 | | - |
6 | | --------------- |
7 | | --- CObjects -- |
8 | | --------------- |
9 | | - |
10 | | -_CObjectPool = {} |
11 | | - |
12 | | -_CObject = { |
13 | | - __index = function (t,k) |
14 | | - return _get_field(t['_lot'], t['_pointer'], k, t) |
15 | | - end, |
16 | | - __newindex = function (t,k,v) |
17 | | - _set_field(t['_lot'], t['_pointer'], k, v, t) |
18 | | - end, |
19 | | - __tostring = function(t) |
20 | | - return 'CObject: ' .. t['_lot'] .. ', [' .. string.format('0x%08X', t['_pointer']) .. ']' |
21 | | - end, |
22 | | - __eq = function (a, b) |
23 | | - return a['_pointer'] == b['_pointer'] and a['_lot'] == b['_lot'] and a['_pointer'] ~= nil and a['_lot'] ~= nil |
24 | | - end |
25 | | -} |
26 | | - |
27 | | -function _NewCObject(lot, pointer) |
28 | | - if _CObjectPool[lot] == nil then |
29 | | - _CObjectPool[lot] = {} |
30 | | - end |
31 | | - |
32 | | - if _CObjectPool[lot][pointer] == nil then |
33 | | - local obj = {} |
34 | | - rawset(obj, '_pointer', pointer) |
35 | | - rawset(obj, '_lot', lot) |
36 | | - setmetatable(obj, _CObject) |
37 | | - _CObjectPool[lot][pointer] = obj |
38 | | - return obj |
39 | | - end |
40 | | - |
41 | | - return _CObjectPool[lot][pointer] |
42 | | -end |
43 | | - |
44 | | -local _CPointerPool = {} |
45 | | - |
46 | | -_CPointer = { |
47 | | - __index = function (t,k) |
48 | | - return nil |
49 | | - end, |
50 | | - __newindex = function (t,k,v) |
51 | | - end, |
52 | | - __tostring = function(t) |
53 | | - return 'CPointer: ' .. t['_lvt'] .. ', [' .. string.format('0x%08X', t['_pointer']) .. ']' |
54 | | - end, |
55 | | - __eq = function (a, b) |
56 | | - return a['_pointer'] == b['_pointer'] and a['_pointer'] ~= nil and a['_lvt'] ~= nil |
57 | | - end |
58 | | -} |
59 | | - |
60 | | -function _NewCPointer(lvt, pointer) |
61 | | - if _CPointerPool[lvt] == nil then |
62 | | - _CPointerPool[lvt] = {} |
63 | | - end |
64 | | - |
65 | | - if _CPointerPool[lvt][pointer] == nil then |
66 | | - local obj = {} |
67 | | - rawset(obj, '_pointer', pointer) |
68 | | - rawset(obj, '_lvt', lvt) |
69 | | - setmetatable(obj, _CPointer) |
70 | | - _CPointerPool[lvt][pointer] = obj |
71 | | - return obj |
72 | | - end |
73 | | - |
74 | | - return _CPointerPool[lvt][pointer] |
75 | | -end |
76 | | - |
77 | 5 | _SyncTable = { |
78 | 6 | __index = function (t,k) |
79 | 7 | local _table = rawget(t, '_table') |
@@ -3779,6 +3707,9 @@ INT_TWIRL = (1 << 8) |
3779 | 3707 | --- @type InteractionFlag |
3780 | 3708 | INT_GROUND_POUND_OR_TWIRL = (INT_GROUND_POUND | INT_TWIRL) |
3781 | 3709 |
|
| 3710 | +--- @type InteractionFlag |
| 3711 | +INT_LUA = (1 << 31) |
| 3712 | + |
3782 | 3713 | --- @class InteractionType |
3783 | 3714 |
|
3784 | 3715 | --- @type InteractionType |
@@ -5571,7 +5502,7 @@ MARIO_HAND_RIGHT_OPEN = 5 |
5571 | 5502 | MAX_KEYS = 512 |
5572 | 5503 |
|
5573 | 5504 | --- @type integer |
5574 | | -MAX_KEY_VALUE_LENGTH = 256 |
| 5505 | +MAX_KEY_VALUE_LENGTH = 512 |
5575 | 5506 |
|
5576 | 5507 | --- @type integer |
5577 | 5508 | PACKET_LENGTH = 3000 |
@@ -9230,7 +9161,10 @@ HOOK_ON_LANGUAGE_CHANGED = 44 |
9230 | 9161 | HOOK_ON_MODS_LOADED = 45 |
9231 | 9162 |
|
9232 | 9163 | --- @type LuaHookedEventType |
9233 | | -HOOK_MAX = 46 |
| 9164 | +HOOK_ON_NAMETAGS_RENDER = 46 |
| 9165 | + |
| 9166 | +--- @type LuaHookedEventType |
| 9167 | +HOOK_MAX = 47 |
9234 | 9168 |
|
9235 | 9169 | --- @class LuaModMenuElementType |
9236 | 9170 |
|
@@ -12557,10 +12491,10 @@ SPTASK_STATE_FINISHED_DP = 4 |
12557 | 12491 | MAX_VERSION_LENGTH = 32 |
12558 | 12492 |
|
12559 | 12493 | --- @type integer |
12560 | | -MINOR_VERSION_NUMBER = 2 |
| 12494 | +MINOR_VERSION_NUMBER = 3 |
12561 | 12495 |
|
12562 | 12496 | --- @type string |
12563 | | -SM64COOPDX_VERSION = "v1.0.3" |
| 12497 | +SM64COOPDX_VERSION = "v1.0.4" |
12564 | 12498 |
|
12565 | 12499 | --- @type integer |
12566 | 12500 | VERSION_NUMBER = 37 |
|
0 commit comments