mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-12-23 00:12:24 +00:00
fix array typing in docs
This commit is contained in:
parent
2ec4b5e53c
commit
bc4679d2e0
2 changed files with 8 additions and 5 deletions
|
|
@ -210,7 +210,10 @@ def translate_type_to_lua(ptype):
|
|||
# Detect arrays
|
||||
if re.search(r'\[([^\]]+)\]', ptype):
|
||||
ptype = re.sub(r'\[[^\]]*\]', '', ptype).strip()
|
||||
s = '`Array` <%s>' % translate_type_to_lua(ptype)[0]
|
||||
ptype = translate_type_to_lua(ptype)[0]
|
||||
if not ptype.startswith('`'):
|
||||
ptype = '`' + ptype + '`'
|
||||
s = '`Array` <%s>' % ptype
|
||||
return s, None
|
||||
|
||||
if ptype.startswith('struct '):
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@
|
|||
| terrainData | `Pointer` <`integer`> | read-only |
|
||||
| terrainType | `integer` | |
|
||||
| warpNodes | [ObjectWarpNode](structs.md#ObjectWarpNode) | read-only |
|
||||
| whirlpools | `Array` <Whirlpool> | |
|
||||
| whirlpools | `Array` <`Whirlpool`> | |
|
||||
|
||||
[:arrow_up_small:](#)
|
||||
|
||||
|
|
@ -1697,7 +1697,7 @@
|
|||
| capState | `integer` | |
|
||||
| eyeState | `integer` | |
|
||||
| grabPos | `integer` | |
|
||||
| handFootPos | `Array` <Vec3f> | read-only |
|
||||
| handFootPos | `Array` <`Vec3f`> | read-only |
|
||||
| handState | `integer` | |
|
||||
| headAngle | [Vec3s](structs.md#Vec3s) | read-only |
|
||||
| headPos | [Vec3f](structs.md#Vec3f) | read-only |
|
||||
|
|
@ -1978,7 +1978,7 @@
|
|||
| bhvDelayTimer | `integer` | |
|
||||
| bhvStackIndex | `integer` | read-only |
|
||||
| collidedObjInteractTypes | `integer` | |
|
||||
| collidedObjs | `Array` <Object> | |
|
||||
| collidedObjs | `Array` <`Object`> | |
|
||||
| collisionData | `Pointer` <`Collision`> | |
|
||||
| coopFlags | `integer` | read-only |
|
||||
| ctx | `integer` | |
|
||||
|
|
@ -3219,7 +3219,7 @@
|
|||
| offsetY | `number` | |
|
||||
| radius | `number` | |
|
||||
| unused | `integer` | |
|
||||
| walls | `Array` <Surface> | |
|
||||
| walls | `Array` <`Surface`> | |
|
||||
| x | `number` | |
|
||||
| y | `number` | |
|
||||
| z | `number` | |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue