Skip to content

Commit

Permalink
fix dox
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Nov 9, 2023
1 parent b89f0ec commit fc8bf02
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
5 changes: 4 additions & 1 deletion docs/game_data/spel2.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/parse_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
"../src/game_api/steam_api.hpp",
"../src/game_api/search.hpp",
"../src/game_api/bucket.hpp",
"../src/game_api/socket.hpp",
]
api_files = [
"../src/game_api/script/script_impl.cpp",
Expand Down
9 changes: 9 additions & 0 deletions docs/src/includes/_globals.md
Original file line number Diff line number Diff line change
Expand Up @@ -2747,6 +2747,15 @@ Sets the absolute current camera position without rubberbanding animation. Ignor

Enables or disables the default position based camp camera bounds, to set them manually yourself

### update_camera_position


> Search script examples for [update_camera_position](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=update_camera_position)
#### nil update_camera_position()

Updates the camera focus according to the params set in [Camera](#Camera), i.e. to apply normal camera movement when paused etc.

### zoom


Expand Down
4 changes: 2 additions & 2 deletions docs/src/includes/_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -2574,7 +2574,7 @@ float | [topleft_woodpanel_esc_slidein_timer](https://github.com/spelunky-fyi/ov
float | [start_sidepanel_slidein_timer](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=start_sidepanel_slidein_timer) |
int | [seed_length](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=seed_length) | Current input length (0-8). You probably shouldn't write to this, except to set it to 0.
optional&lt;int&gt; | [get_seed](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=get_seed) | Get the seed currently entered in the seed dialog or nil if nothing is entered. Will also return incomplete seeds, check seed_length to verify it's ready.<br/>
| [set_seed](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=set_seed) | Set the seed entered in the seed dialog. Call without arguments to clear entered seed. Optionally enter a length to set partial seed.<br/>
| [set_seed](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=set_seed) | Params: optional<int> seed, optional<int> length<br/>Set the seed entered in the seed dialog. Call without arguments to clear entered seed. Optionally enter a length to set partial seed.<br/>

### ScreenStateCamp

Expand Down Expand Up @@ -2793,7 +2793,7 @@ float | [shake_multiplier_x](https://github.com/spelunky-fyi/overlunky/search?l=
float | [shake_multiplier_y](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=shake_multiplier_y) |
bool | [uniform_shake](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=uniform_shake) |
int | [focused_entity_uid](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=focused_entity_uid) |
float | [inertia](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=inertia) |
float | [inertia](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=inertia) | This is a bad name, but it represents the camera tweening speed. [0..5] where 0=still, 1=default (move 20% of distance per frame), 5=max (move 5*20% or 100% aka instantly to destination per frame)

### GameManager

Expand Down

0 comments on commit fc8bf02

Please sign in to comment.