Files
jak-project/test/decompiler/reference/jak2/engine/draw/drawable-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

62 lines
1.7 KiB
Common Lisp
Vendored
Generated

;;-*-Lisp-*-
(in-package goal)
;; definition of type drawable
(deftype drawable (basic)
((id int16 :offset-assert 4)
(bsphere vector :inline :offset-assert 16)
)
:method-count-assert 17
:size-assert #x20
:flag-assert #x1100000020
(:methods
(login (_type_) _type_ 9)
(draw (_type_ _type_ display-frame) none 10)
(fill-collide-list-from-box (_type_ int collide-list collide-query) int 11)
(fill-collide-list-from-line-sphere (_type_ int collide-list collide-query) int 12)
(collect-stats (_type_) none 13)
(debug-draw (_type_ drawable display-frame) none 14)
(unpack-vis (_type_ (pointer int8) (pointer int8)) (pointer int8) 15)
(collect-regions (_type_ sphere int region-prim-list) none 16)
)
)
;; definition for method 3 of type drawable
(defmethod inspect drawable ((this drawable))
(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))
(label cfg-4)
this
)
;; definition of type drawable-error
(deftype drawable-error (drawable)
((name string :offset-assert 32)
)
:method-count-assert 17
:size-assert #x24
:flag-assert #x1100000024
)
;; definition for method 3 of type drawable-error
(defmethod inspect drawable-error ((this drawable-error))
(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 "~1Tname: ~A~%" (-> this name))
(label cfg-4)
this
)
;; failed to figure out what this is:
0