mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 05:25:14 +00:00
Reran autogen
This commit is contained in:
parent
c8b28061cc
commit
6113254650
5 changed files with 224 additions and 184 deletions
|
@ -3625,6 +3625,11 @@ function djui_chat_message_create(message)
|
||||||
-- ...
|
-- ...
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- @return nil
|
||||||
|
function djui_console_message_dequeue()
|
||||||
|
-- ...
|
||||||
|
end
|
||||||
|
|
||||||
--- @return nil
|
--- @return nil
|
||||||
function djui_console_toggle()
|
function djui_console_toggle()
|
||||||
-- ...
|
-- ...
|
||||||
|
|
|
@ -2056,6 +2056,24 @@
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
|
|
||||||
|
## [djui_console_message_dequeue](#djui_console_message_dequeue)
|
||||||
|
|
||||||
|
### Lua Example
|
||||||
|
`djui_console_message_dequeue()`
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
- None
|
||||||
|
|
||||||
|
### Returns
|
||||||
|
- None
|
||||||
|
|
||||||
|
### C Prototype
|
||||||
|
`void djui_console_message_dequeue(void);`
|
||||||
|
|
||||||
|
[:arrow_up_small:](#)
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
## [djui_console_toggle](#djui_console_toggle)
|
## [djui_console_toggle](#djui_console_toggle)
|
||||||
|
|
||||||
### Lua Example
|
### Lua Example
|
||||||
|
@ -8793,182 +8811,6 @@
|
||||||
|
|
||||||
[:arrow_up_small:](#)
|
[:arrow_up_small:](#)
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
---
|
|
||||||
# functions from network_player.h
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
|
|
||||||
## [get_network_player_from_area](#get_network_player_from_area)
|
|
||||||
|
|
||||||
### Lua Example
|
|
||||||
`local NetworkPlayerValue = get_network_player_from_area(courseNum, actNum, levelNum, areaIndex)`
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
| Field | Type |
|
|
||||||
| ----- | ---- |
|
|
||||||
| courseNum | `integer` |
|
|
||||||
| actNum | `integer` |
|
|
||||||
| levelNum | `integer` |
|
|
||||||
| areaIndex | `integer` |
|
|
||||||
|
|
||||||
### Returns
|
|
||||||
[NetworkPlayer](structs.md#NetworkPlayer)
|
|
||||||
|
|
||||||
### C Prototype
|
|
||||||
`struct NetworkPlayer* get_network_player_from_area(s16 courseNum, s16 actNum, s16 levelNum, s16 areaIndex);`
|
|
||||||
|
|
||||||
[:arrow_up_small:](#)
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
## [get_network_player_from_level](#get_network_player_from_level)
|
|
||||||
|
|
||||||
### Lua Example
|
|
||||||
`local NetworkPlayerValue = get_network_player_from_level(courseNum, actNum, levelNum)`
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
| Field | Type |
|
|
||||||
| ----- | ---- |
|
|
||||||
| courseNum | `integer` |
|
|
||||||
| actNum | `integer` |
|
|
||||||
| levelNum | `integer` |
|
|
||||||
|
|
||||||
### Returns
|
|
||||||
[NetworkPlayer](structs.md#NetworkPlayer)
|
|
||||||
|
|
||||||
### C Prototype
|
|
||||||
`struct NetworkPlayer* get_network_player_from_level(s16 courseNum, s16 actNum, s16 levelNum);`
|
|
||||||
|
|
||||||
[:arrow_up_small:](#)
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
## [get_network_player_smallest_global](#get_network_player_smallest_global)
|
|
||||||
|
|
||||||
### Lua Example
|
|
||||||
`local NetworkPlayerValue = get_network_player_smallest_global()`
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
- None
|
|
||||||
|
|
||||||
### Returns
|
|
||||||
[NetworkPlayer](structs.md#NetworkPlayer)
|
|
||||||
|
|
||||||
### C Prototype
|
|
||||||
`struct NetworkPlayer* get_network_player_smallest_global(void);`
|
|
||||||
|
|
||||||
[:arrow_up_small:](#)
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
## [network_player_color_to_palette](#network_player_color_to_palette)
|
|
||||||
|
|
||||||
### Lua Example
|
|
||||||
`network_player_color_to_palette(np, part, color)`
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
| Field | Type |
|
|
||||||
| ----- | ---- |
|
|
||||||
| np | [NetworkPlayer](structs.md#NetworkPlayer) |
|
|
||||||
| part | [enum PlayerParts](constants.md#enum-PlayerParts) |
|
|
||||||
| color | `Color` |
|
|
||||||
|
|
||||||
### Returns
|
|
||||||
- None
|
|
||||||
|
|
||||||
### C Prototype
|
|
||||||
`void network_player_color_to_palette(struct NetworkPlayer *np, enum PlayerParts part, Color color);`
|
|
||||||
|
|
||||||
[:arrow_up_small:](#)
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
## [network_player_connected_count](#network_player_connected_count)
|
|
||||||
|
|
||||||
### Lua Example
|
|
||||||
`local integerValue = network_player_connected_count()`
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
- None
|
|
||||||
|
|
||||||
### Returns
|
|
||||||
- `integer`
|
|
||||||
|
|
||||||
### C Prototype
|
|
||||||
`u8 network_player_connected_count(void);`
|
|
||||||
|
|
||||||
[:arrow_up_small:](#)
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
## [network_player_from_global_index](#network_player_from_global_index)
|
|
||||||
|
|
||||||
### Lua Example
|
|
||||||
`local NetworkPlayerValue = network_player_from_global_index(globalIndex)`
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
| Field | Type |
|
|
||||||
| ----- | ---- |
|
|
||||||
| globalIndex | `integer` |
|
|
||||||
|
|
||||||
### Returns
|
|
||||||
[NetworkPlayer](structs.md#NetworkPlayer)
|
|
||||||
|
|
||||||
### C Prototype
|
|
||||||
`struct NetworkPlayer* network_player_from_global_index(u8 globalIndex);`
|
|
||||||
|
|
||||||
[:arrow_up_small:](#)
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
## [network_player_palette_to_color](#network_player_palette_to_color)
|
|
||||||
|
|
||||||
### Lua Example
|
|
||||||
`network_player_palette_to_color(np, part, out)`
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
| Field | Type |
|
|
||||||
| ----- | ---- |
|
|
||||||
| np | [NetworkPlayer](structs.md#NetworkPlayer) |
|
|
||||||
| part | [enum PlayerParts](constants.md#enum-PlayerParts) |
|
|
||||||
| out | `Color` |
|
|
||||||
|
|
||||||
### Returns
|
|
||||||
- None
|
|
||||||
|
|
||||||
### C Prototype
|
|
||||||
`void network_player_palette_to_color(struct NetworkPlayer *np, enum PlayerParts part, Color out);`
|
|
||||||
|
|
||||||
[:arrow_up_small:](#)
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
## [network_player_set_description](#network_player_set_description)
|
|
||||||
|
|
||||||
### Lua Example
|
|
||||||
`network_player_set_description(np, description, r, g, b, a)`
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
| Field | Type |
|
|
||||||
| ----- | ---- |
|
|
||||||
| np | [NetworkPlayer](structs.md#NetworkPlayer) |
|
|
||||||
| description | `string` |
|
|
||||||
| r | `integer` |
|
|
||||||
| g | `integer` |
|
|
||||||
| b | `integer` |
|
|
||||||
| a | `integer` |
|
|
||||||
|
|
||||||
### Returns
|
|
||||||
- None
|
|
||||||
|
|
||||||
### C Prototype
|
|
||||||
`void network_player_set_description(struct NetworkPlayer* np, const char* description, u8 r, u8 g, u8 b, u8 a);`
|
|
||||||
|
|
||||||
[:arrow_up_small:](#)
|
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,182 @@
|
||||||
[< prev](functions-3.md) | [1](functions.md) | [2](functions-2.md) | [3](functions-3.md) | 4 | [5](functions-5.md) | [next >](functions-5.md)]
|
[< prev](functions-3.md) | [1](functions.md) | [2](functions-2.md) | [3](functions-3.md) | 4 | [5](functions-5.md) | [next >](functions-5.md)]
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
# functions from network_player.h
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
|
||||||
|
## [get_network_player_from_area](#get_network_player_from_area)
|
||||||
|
|
||||||
|
### Lua Example
|
||||||
|
`local NetworkPlayerValue = get_network_player_from_area(courseNum, actNum, levelNum, areaIndex)`
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
| Field | Type |
|
||||||
|
| ----- | ---- |
|
||||||
|
| courseNum | `integer` |
|
||||||
|
| actNum | `integer` |
|
||||||
|
| levelNum | `integer` |
|
||||||
|
| areaIndex | `integer` |
|
||||||
|
|
||||||
|
### Returns
|
||||||
|
[NetworkPlayer](structs.md#NetworkPlayer)
|
||||||
|
|
||||||
|
### C Prototype
|
||||||
|
`struct NetworkPlayer* get_network_player_from_area(s16 courseNum, s16 actNum, s16 levelNum, s16 areaIndex);`
|
||||||
|
|
||||||
|
[:arrow_up_small:](#)
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
## [get_network_player_from_level](#get_network_player_from_level)
|
||||||
|
|
||||||
|
### Lua Example
|
||||||
|
`local NetworkPlayerValue = get_network_player_from_level(courseNum, actNum, levelNum)`
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
| Field | Type |
|
||||||
|
| ----- | ---- |
|
||||||
|
| courseNum | `integer` |
|
||||||
|
| actNum | `integer` |
|
||||||
|
| levelNum | `integer` |
|
||||||
|
|
||||||
|
### Returns
|
||||||
|
[NetworkPlayer](structs.md#NetworkPlayer)
|
||||||
|
|
||||||
|
### C Prototype
|
||||||
|
`struct NetworkPlayer* get_network_player_from_level(s16 courseNum, s16 actNum, s16 levelNum);`
|
||||||
|
|
||||||
|
[:arrow_up_small:](#)
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
## [get_network_player_smallest_global](#get_network_player_smallest_global)
|
||||||
|
|
||||||
|
### Lua Example
|
||||||
|
`local NetworkPlayerValue = get_network_player_smallest_global()`
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
- None
|
||||||
|
|
||||||
|
### Returns
|
||||||
|
[NetworkPlayer](structs.md#NetworkPlayer)
|
||||||
|
|
||||||
|
### C Prototype
|
||||||
|
`struct NetworkPlayer* get_network_player_smallest_global(void);`
|
||||||
|
|
||||||
|
[:arrow_up_small:](#)
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
## [network_player_color_to_palette](#network_player_color_to_palette)
|
||||||
|
|
||||||
|
### Lua Example
|
||||||
|
`network_player_color_to_palette(np, part, color)`
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
| Field | Type |
|
||||||
|
| ----- | ---- |
|
||||||
|
| np | [NetworkPlayer](structs.md#NetworkPlayer) |
|
||||||
|
| part | [enum PlayerParts](constants.md#enum-PlayerParts) |
|
||||||
|
| color | `Color` |
|
||||||
|
|
||||||
|
### Returns
|
||||||
|
- None
|
||||||
|
|
||||||
|
### C Prototype
|
||||||
|
`void network_player_color_to_palette(struct NetworkPlayer *np, enum PlayerParts part, Color color);`
|
||||||
|
|
||||||
|
[:arrow_up_small:](#)
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
## [network_player_connected_count](#network_player_connected_count)
|
||||||
|
|
||||||
|
### Lua Example
|
||||||
|
`local integerValue = network_player_connected_count()`
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
- None
|
||||||
|
|
||||||
|
### Returns
|
||||||
|
- `integer`
|
||||||
|
|
||||||
|
### C Prototype
|
||||||
|
`u8 network_player_connected_count(void);`
|
||||||
|
|
||||||
|
[:arrow_up_small:](#)
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
## [network_player_from_global_index](#network_player_from_global_index)
|
||||||
|
|
||||||
|
### Lua Example
|
||||||
|
`local NetworkPlayerValue = network_player_from_global_index(globalIndex)`
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
| Field | Type |
|
||||||
|
| ----- | ---- |
|
||||||
|
| globalIndex | `integer` |
|
||||||
|
|
||||||
|
### Returns
|
||||||
|
[NetworkPlayer](structs.md#NetworkPlayer)
|
||||||
|
|
||||||
|
### C Prototype
|
||||||
|
`struct NetworkPlayer* network_player_from_global_index(u8 globalIndex);`
|
||||||
|
|
||||||
|
[:arrow_up_small:](#)
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
## [network_player_palette_to_color](#network_player_palette_to_color)
|
||||||
|
|
||||||
|
### Lua Example
|
||||||
|
`network_player_palette_to_color(np, part, out)`
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
| Field | Type |
|
||||||
|
| ----- | ---- |
|
||||||
|
| np | [NetworkPlayer](structs.md#NetworkPlayer) |
|
||||||
|
| part | [enum PlayerParts](constants.md#enum-PlayerParts) |
|
||||||
|
| out | `Color` |
|
||||||
|
|
||||||
|
### Returns
|
||||||
|
- None
|
||||||
|
|
||||||
|
### C Prototype
|
||||||
|
`void network_player_palette_to_color(struct NetworkPlayer *np, enum PlayerParts part, Color out);`
|
||||||
|
|
||||||
|
[:arrow_up_small:](#)
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
## [network_player_set_description](#network_player_set_description)
|
||||||
|
|
||||||
|
### Lua Example
|
||||||
|
`network_player_set_description(np, description, r, g, b, a)`
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
| Field | Type |
|
||||||
|
| ----- | ---- |
|
||||||
|
| np | [NetworkPlayer](structs.md#NetworkPlayer) |
|
||||||
|
| description | `string` |
|
||||||
|
| r | `integer` |
|
||||||
|
| g | `integer` |
|
||||||
|
| b | `integer` |
|
||||||
|
| a | `integer` |
|
||||||
|
|
||||||
|
### Returns
|
||||||
|
- None
|
||||||
|
|
||||||
|
### C Prototype
|
||||||
|
`void network_player_set_description(struct NetworkPlayer* np, const char* description, u8 r, u8 g, u8 b, u8 a);`
|
||||||
|
|
||||||
|
[:arrow_up_small:](#)
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
---
|
---
|
||||||
# functions from network_utils.h
|
# functions from network_utils.h
|
||||||
|
|
||||||
|
|
|
@ -724,6 +724,7 @@
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
- djui_console.h
|
- djui_console.h
|
||||||
|
- [djui_console_message_dequeue](functions-3.md#djui_console_message_dequeue)
|
||||||
- [djui_console_toggle](functions-3.md#djui_console_toggle)
|
- [djui_console_toggle](functions-3.md#djui_console_toggle)
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
@ -1139,14 +1140,14 @@
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
- network_player.h
|
- network_player.h
|
||||||
- [get_network_player_from_area](functions-3.md#get_network_player_from_area)
|
- [get_network_player_from_area](functions-4.md#get_network_player_from_area)
|
||||||
- [get_network_player_from_level](functions-3.md#get_network_player_from_level)
|
- [get_network_player_from_level](functions-4.md#get_network_player_from_level)
|
||||||
- [get_network_player_smallest_global](functions-3.md#get_network_player_smallest_global)
|
- [get_network_player_smallest_global](functions-4.md#get_network_player_smallest_global)
|
||||||
- [network_player_color_to_palette](functions-3.md#network_player_color_to_palette)
|
- [network_player_color_to_palette](functions-4.md#network_player_color_to_palette)
|
||||||
- [network_player_connected_count](functions-3.md#network_player_connected_count)
|
- [network_player_connected_count](functions-4.md#network_player_connected_count)
|
||||||
- [network_player_from_global_index](functions-3.md#network_player_from_global_index)
|
- [network_player_from_global_index](functions-4.md#network_player_from_global_index)
|
||||||
- [network_player_palette_to_color](functions-3.md#network_player_palette_to_color)
|
- [network_player_palette_to_color](functions-4.md#network_player_palette_to_color)
|
||||||
- [network_player_set_description](functions-3.md#network_player_set_description)
|
- [network_player_set_description](functions-4.md#network_player_set_description)
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
|
|
|
@ -12070,6 +12070,21 @@ int smlua_func_djui_chat_message_create(lua_State* L) {
|
||||||
// djui_console.h //
|
// djui_console.h //
|
||||||
////////////////////
|
////////////////////
|
||||||
|
|
||||||
|
int smlua_func_djui_console_message_dequeue(UNUSED lua_State* L) {
|
||||||
|
if (L == NULL) { return 0; }
|
||||||
|
|
||||||
|
int top = lua_gettop(L);
|
||||||
|
if (top != 0) {
|
||||||
|
LOG_LUA_LINE("Improper param count for '%s': Expected %u, Received %u", "djui_console_message_dequeue", 0, top);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
djui_console_message_dequeue();
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
int smlua_func_djui_console_toggle(UNUSED lua_State* L) {
|
int smlua_func_djui_console_toggle(UNUSED lua_State* L) {
|
||||||
if (L == NULL) { return 0; }
|
if (L == NULL) { return 0; }
|
||||||
|
|
||||||
|
@ -31973,6 +31988,7 @@ void smlua_bind_functions_autogen(void) {
|
||||||
smlua_bind_function(L, "djui_chat_message_create", smlua_func_djui_chat_message_create);
|
smlua_bind_function(L, "djui_chat_message_create", smlua_func_djui_chat_message_create);
|
||||||
|
|
||||||
// djui_console.h
|
// djui_console.h
|
||||||
|
smlua_bind_function(L, "djui_console_message_dequeue", smlua_func_djui_console_message_dequeue);
|
||||||
smlua_bind_function(L, "djui_console_toggle", smlua_func_djui_console_toggle);
|
smlua_bind_function(L, "djui_console_toggle", smlua_func_djui_console_toggle);
|
||||||
|
|
||||||
// djui_hud_utils.h
|
// djui_hud_utils.h
|
||||||
|
|
Loading…
Reference in a new issue