Readd DC constants (oops)

This commit is contained in:
EmeraldLockdown 2026-03-11 18:59:26 -05:00
parent f1b3917adc
commit 5008c635af
4 changed files with 28 additions and 0 deletions

View file

@ -20,6 +20,7 @@ in_files = [
"src/game/characters.h",
"src/pc/network/network.h",
"src/pc/network/network_player.h",
"src/pc/network/network_utils.h",
"include/PR/os_cont.h",
"src/game/interaction.c",
"src/game/interaction.h",

View file

@ -4777,6 +4777,15 @@ NPT_CLIENT = 3 --- @type NetworkPlayerType
--- | `NPT_SERVER`
--- | `NPT_CLIENT`
DC_LEAVE = 0 --- @type DisconnectType
DC_KICK = 1 --- @type DisconnectType
DC_BAN = 2 --- @type DisconnectType
--- @alias DisconnectType
--- | `DC_LEAVE`
--- | `DC_KICK`
--- | `DC_BAN`
--- @type integer
OBJ_COL_FLAG_GROUNDED = (1 << 0)

View file

@ -64,6 +64,8 @@
- [enum PvpType](#enum-PvpType)
- [network_player.h](#network_playerh)
- [enum NetworkPlayerType](#enum-NetworkPlayerType)
- [network_utils.h](#network_utilsh)
- [enum DisconnectType](#enum-DisconnectType)
- [obj_behaviors.c](#obj_behaviorsc)
- [obj_behaviors_2.h](#obj_behaviors_2h)
- [object_constants.h](#object_constantsh)
@ -2257,6 +2259,19 @@
<br />
## [network_utils.h](#network_utils.h)
### [enum DisconnectType](#DisconnectType)
| Identifier | Value |
| :--------- | :---- |
| DC_LEAVE | 0 |
| DC_KICK | 1 |
| DC_BAN | 2 |
[:arrow_up_small:](#)
<br />
## [obj_behaviors.c](#obj_behaviors.c)
- OBJ_COL_FLAG_GROUNDED
- OBJ_COL_FLAG_HIT_WALL

View file

@ -2346,6 +2346,9 @@ char gSmluaConstants[] = ""
"NPT_LOCAL=1\n"
"NPT_SERVER=2\n"
"NPT_CLIENT=3\n"
"DC_LEAVE=0\n"
"DC_KICK=1\n"
"DC_BAN=2\n"
"OBJ_COL_FLAG_GROUNDED=(1 << 0)\n"
"OBJ_COL_FLAG_HIT_WALL=(1 << 1)\n"
"OBJ_COL_FLAG_UNDERWATER=(1 << 2)\n"