mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-01-03 14:11:10 +00:00
Hide player palette color channel functions to minimize confusion
This commit is contained in:
parent
7148f47f99
commit
e953fb3bf3
5 changed files with 3 additions and 56 deletions
|
@ -124,7 +124,8 @@ override_disallowed_functions = {
|
|||
}
|
||||
|
||||
override_hide_functions = {
|
||||
"smlua_deprecated.h" : [ ".*" ],
|
||||
"smlua_deprecated.h": [ ".*" ],
|
||||
"network_player.h": [ "network_player_get_palette_color_channel", "network_player_get_override_palette_color_channel" ]
|
||||
}
|
||||
|
||||
override_function_version_excludes = {
|
||||
|
|
|
@ -429,11 +429,4 @@ end
|
|||
-- legacy font --
|
||||
-----------------
|
||||
|
||||
FONT_TINY = -1
|
||||
|
||||
|
||||
----------------------
|
||||
-- legacy functions --
|
||||
----------------------
|
||||
|
||||
function get_coop_compatibility_enabled() return false end
|
||||
FONT_TINY = -1
|
|
@ -1313,50 +1313,6 @@
|
|||
|
||||
<br />
|
||||
|
||||
## [network_player_get_override_palette_color_channel](#network_player_get_override_palette_color_channel)
|
||||
|
||||
### Lua Example
|
||||
`local integerValue = network_player_get_override_palette_color_channel(np, part, index)`
|
||||
|
||||
### Parameters
|
||||
| Field | Type |
|
||||
| ----- | ---- |
|
||||
| np | [NetworkPlayer](structs.md#NetworkPlayer) |
|
||||
| part | [enum PlayerPart](constants.md#enum-PlayerPart) |
|
||||
| index | `integer` |
|
||||
|
||||
### Returns
|
||||
- `integer`
|
||||
|
||||
### C Prototype
|
||||
`u8 network_player_get_override_palette_color_channel(struct NetworkPlayer *np, enum PlayerPart part, u8 index);`
|
||||
|
||||
[:arrow_up_small:](#)
|
||||
|
||||
<br />
|
||||
|
||||
## [network_player_get_palette_color_channel](#network_player_get_palette_color_channel)
|
||||
|
||||
### Lua Example
|
||||
`local integerValue = network_player_get_palette_color_channel(np, part, index)`
|
||||
|
||||
### Parameters
|
||||
| Field | Type |
|
||||
| ----- | ---- |
|
||||
| np | [NetworkPlayer](structs.md#NetworkPlayer) |
|
||||
| part | [enum PlayerPart](constants.md#enum-PlayerPart) |
|
||||
| index | `integer` |
|
||||
|
||||
### Returns
|
||||
- `integer`
|
||||
|
||||
### C Prototype
|
||||
`u8 network_player_get_palette_color_channel(struct NetworkPlayer *np, enum PlayerPart part, u8 index);`
|
||||
|
||||
[:arrow_up_small:](#)
|
||||
|
||||
<br />
|
||||
|
||||
## [network_player_is_override_palette_same](#network_player_is_override_palette_same)
|
||||
|
||||
### Lua Example
|
||||
|
|
|
@ -1201,8 +1201,6 @@
|
|||
- [get_network_player_smallest_global](functions-4.md#get_network_player_smallest_global)
|
||||
- [network_player_connected_count](functions-4.md#network_player_connected_count)
|
||||
- [network_player_from_global_index](functions-4.md#network_player_from_global_index)
|
||||
- [network_player_get_override_palette_color_channel](functions-4.md#network_player_get_override_palette_color_channel)
|
||||
- [network_player_get_palette_color_channel](functions-4.md#network_player_get_palette_color_channel)
|
||||
- [network_player_is_override_palette_same](functions-4.md#network_player_is_override_palette_same)
|
||||
- [network_player_reset_override_palette](functions-4.md#network_player_reset_override_palette)
|
||||
- [network_player_set_description](functions-4.md#network_player_set_description)
|
||||
|
|
|
@ -355,7 +355,6 @@ local function update_cheat(index, value)
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
local sReadonlyMetatable = {
|
||||
__index = function(table, key)
|
||||
return rawget(table, key)
|
||||
|
|
Loading…
Reference in a new issue