Hide player palette color channel functions to minimize confusion
This commit is contained in:
parent
7148f47f99
commit
e953fb3bf3
|
@ -125,6 +125,7 @@ override_disallowed_functions = {
|
||||||
|
|
||||||
override_hide_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 = {
|
override_function_version_excludes = {
|
||||||
|
|
|
@ -430,10 +430,3 @@ end
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
FONT_TINY = -1
|
FONT_TINY = -1
|
||||||
|
|
||||||
|
|
||||||
----------------------
|
|
||||||
-- legacy functions --
|
|
||||||
----------------------
|
|
||||||
|
|
||||||
function get_coop_compatibility_enabled() return false end
|
|
|
@ -1313,50 +1313,6 @@
|
||||||
|
|
||||||
<br />
|
<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)
|
## [network_player_is_override_palette_same](#network_player_is_override_palette_same)
|
||||||
|
|
||||||
### Lua Example
|
### Lua Example
|
||||||
|
|
|
@ -1201,8 +1201,6 @@
|
||||||
- [get_network_player_smallest_global](functions-4.md#get_network_player_smallest_global)
|
- [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_connected_count](functions-4.md#network_player_connected_count)
|
||||||
- [network_player_from_global_index](functions-4.md#network_player_from_global_index)
|
- [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_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_reset_override_palette](functions-4.md#network_player_reset_override_palette)
|
||||||
- [network_player_set_description](functions-4.md#network_player_set_description)
|
- [network_player_set_description](functions-4.md#network_player_set_description)
|
||||||
|
|
|
@ -355,7 +355,6 @@ local function update_cheat(index, value)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
local sReadonlyMetatable = {
|
local sReadonlyMetatable = {
|
||||||
__index = function(table, key)
|
__index = function(table, key)
|
||||||
return rawget(table, key)
|
return rawget(table, key)
|
||||||
|
|
Loading…
Reference in New Issue