mirror of
https://github.com/open-goal/jak-project
synced 2026-07-25 14:27:10 -04:00
fc43870d85
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...
68 lines
1.8 KiB
Common Lisp
Vendored
Generated
68 lines
1.8 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 17
|
|
:size-assert #x20
|
|
:flag-assert #x1100000020
|
|
)
|
|
|
|
;; definition for method 3 of type draw-node
|
|
(defmethod inspect draw-node ((this draw-node))
|
|
(when (not this)
|
|
(set! this this)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" this (-> this type))
|
|
(format #t "~1Tid: ~D~%" (-> this id))
|
|
(format #t "~1Tbsphere: ~`vector`P~%" (-> this bsphere))
|
|
(format #t "~1Tchild-count: ~D~%" (-> this child-count))
|
|
(format #t "~1Tflags: ~D~%" (-> this flags))
|
|
(format #t "~1Tchild: #x~X~%" (-> this child))
|
|
(format #t "~1Tdistance: #x~X~%" (-> this distance))
|
|
(label cfg-4)
|
|
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 17
|
|
:size-assert #x44
|
|
:flag-assert #x1100000044
|
|
)
|
|
|
|
;; 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))
|
|
(when (not this)
|
|
(set! this this)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" this 'draw-node-dma)
|
|
(format #t "~1Tbanka[32] @ #x~X~%" (-> this banka))
|
|
(format #t "~1Tbankb[32] @ #x~X~%" (-> this bankb))
|
|
(label cfg-4)
|
|
this
|
|
)
|
|
|
|
;; failed to figure out what this is:
|
|
0
|