From d3b916350700251e8a6d404ba2142e92177410e9 Mon Sep 17 00:00:00 2001 From: MysterD Date: Fri, 4 Mar 2022 22:31:32 -0800 Subject: [PATCH] Add missing AreaTimerType to documentation --- autogen/convert_constants.py | 2 +- docs/lua/constants.md | 7 +++++++ src/pc/lua/smlua_constants_autogen.c | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/autogen/convert_constants.py b/autogen/convert_constants.py index 45621a60..8c6d6b59 100644 --- a/autogen/convert_constants.py +++ b/autogen/convert_constants.py @@ -29,7 +29,7 @@ in_files = [ ] exclude_constants = { - '*': [ '^MAXCONTROLLERS$', '^LEVEL_.*', '^AREA_.*', '^CONT_ERR.*', '^READ_MASK$', '^SIGN_RANGE$', ] + '*': [ '^MAXCONTROLLERS$', '^LEVEL_.*', '^AREA_[^T].*', '^AREA_T[HTO]', '^CONT_ERR.*', '^READ_MASK$', '^SIGN_RANGE$', ] } include_constants = { diff --git a/docs/lua/constants.md b/docs/lua/constants.md index 7fb1190b..b5c2abd1 100644 --- a/docs/lua/constants.md +++ b/docs/lua/constants.md @@ -2658,6 +2658,13 @@ - PLAY_MODE_NORMAL - PLAY_MODE_PAUSED +### [enum AreaTimerType](#AreaTimerType) +| Identifier | Value | +| :--------- | :---- | +| AREA_TIMER_TYPE_NONE | 0 | +| AREA_TIMER_TYPE_LOOP | 1 | +| AREA_TIMER_TYPE_MAXIMUM | 2 | + ### [enum SpTaskState](#SpTaskState) | Identifier | Value | | :--------- | :---- | diff --git a/src/pc/lua/smlua_constants_autogen.c b/src/pc/lua/smlua_constants_autogen.c index b56647e0..783b59f8 100644 --- a/src/pc/lua/smlua_constants_autogen.c +++ b/src/pc/lua/smlua_constants_autogen.c @@ -2620,6 +2620,9 @@ char gSmluaConstants[] = "" "SPTASK_STATE_INTERRUPTED = 2\n" "SPTASK_STATE_FINISHED = 3\n" "SPTASK_STATE_FINISHED_DP = 4\n" +"AREA_TIMER_TYPE_NONE = 0\n" +"AREA_TIMER_TYPE_LOOP = 1\n" +"AREA_TIMER_TYPE_MAXIMUM = 2\n" "ANIM_FLAG_NOLOOP = (1 << 0)\n" "ANIM_FLAG_FORWARD = (1 << 1)\n" "ANIM_FLAG_2 = (1 << 2)\n"