Files
jak-project/test/decompiler/reference/jak1/engine/draw/draw-node-h_REF.gc
T
Hat Kid fc43870d85 decompiler: obj -> this, set-time! and time-elapsed? macros (#3026)
This renames the method object in `defmethod`s to `this` and adds
detection for the `set-time!` and `time-elapsed?` macros.

Definitely my biggest PR yet...
2023-09-26 15:17:00 +01:00

58 lines
1.7 KiB
Common Lisp
Vendored
Generated

;;-*-Lisp-*-
(in-package goal)
;; definition of type draw-node
(deftype draw-node (drawable)
((child-count uint8 :offset 6)
(flags uint8 :offset 7)
(child drawable :offset 8)
(distance float :offset 12)
)
:method-count-assert 18
:size-assert #x20
:flag-assert #x1200000020
)
;; definition for method 3 of type draw-node
(defmethod inspect draw-node ((this draw-node))
(format #t "[~8x] ~A~%" this (-> this type))
(format #t "~Tid: ~D~%" (-> this id))
(format #t "~Tbsphere: ~`vector`P~%" (-> this bsphere))
(format #t "~Tchild-count: ~D~%" (-> this child-count))
(format #t "~Tflags: ~D~%" (-> this flags))
(format #t "~Tchild: #x~X~%" (-> this child))
(format #t "~Tdistance: #x~X~%" (-> this distance))
this
)
;; definition of type drawable-inline-array-node
(deftype drawable-inline-array-node (drawable-inline-array)
((data draw-node 1 :inline :offset-assert 32)
(pad uint32 :offset-assert 64)
)
:method-count-assert 18
:size-assert #x44
:flag-assert #x1200000044
)
;; definition of type draw-node-dma
(deftype draw-node-dma (structure)
((banka draw-node 32 :inline :offset-assert 0)
(bankb draw-node 32 :inline :offset-assert 1024)
)
:method-count-assert 9
:size-assert #x800
:flag-assert #x900000800
)
;; definition for method 3 of type draw-node-dma
(defmethod inspect draw-node-dma ((this draw-node-dma))
(format #t "[~8x] ~A~%" this 'draw-node-dma)
(format #t "~Tbanka[32] @ #x~X~%" (-> this banka))
(format #t "~Tbankb[32] @ #x~X~%" (-> this bankb))
this
)
;; failed to figure out what this is:
0