[decompile] decomp time-of-day-h, fix mood-h, update sky-h, make art-h almost work (#415)

* [decompiler] make certain floats decompile to constants

* update various types in `mood-h`, `time-of-day-h` and `art-h`

* fix `time-of-day-context`

* add some offline tests

* make `new-dynamic-structure` decompile at least

* formatting

* Update all-types.gc

* Update all-types.gc
This commit is contained in:
ManDude
2021-05-05 02:36:22 +01:00
committed by GitHub
parent 2beaa7a340
commit 8d99bee88c
12 changed files with 1222 additions and 248 deletions
@@ -138,6 +138,12 @@
(define-extern quaternion-from-two-vectors-max-angle! (function quaternion vector vector float quaternion))
(define-extern vector-xz-length (function vector float))
;; trigonometry
(defconstant PI (the-as float #x40490fda))
(defconstant MINUS_PI (the-as float #xc0490fda))
(define-extern sin-rad (function float float))
(define-extern cos-rad (function float float))
(defmacro .sync.l ()
`(none))