Files
jak-project/test/decompiler/reference/jak2/engine/draw/drawable-h_REF.gc
T
water111 8ae4829f48 [decomp] collide-hash, collide-frag, collide-probe (#1998)
The only interesting one is `collide-hash`, which is untested.
The other two are very likely unused. I skipped the annoying code in
`collide-probe` because it's not used and the same as jak 1.
2022-10-29 20:32:03 -04:00

56 lines
1.5 KiB
Common Lisp
Vendored
Generated

(in-package goal)
(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)
)
)
(defmethod inspect drawable ((obj drawable))
(when (not obj)
(set! obj obj)
(goto cfg-4)
)
(format #t "[~8x] ~A~%" obj (-> obj type))
(format #t "~1Tid: ~D~%" (-> obj id))
(format #t "~1Tbsphere: ~`vector`P~%" (-> obj bsphere))
(label cfg-4)
obj
)
(deftype drawable-error (drawable)
((name string :offset-assert 32)
)
:method-count-assert 17
:size-assert #x24
:flag-assert #x1100000024
)
(defmethod inspect drawable-error ((obj drawable-error))
(when (not obj)
(set! obj obj)
(goto cfg-4)
)
(format #t "[~8x] ~A~%" obj (-> obj type))
(format #t "~1Tid: ~D~%" (-> obj id))
(format #t "~1Tbsphere: ~`vector`P~%" (-> obj bsphere))
(format #t "~1Tname: ~A~%" (-> obj name))
(label cfg-4)
obj
)
0