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

69 lines
2.8 KiB
Common Lisp
Vendored
Generated

;;-*-Lisp-*-
(in-package goal)
;; definition of type process-taskable
(deftype process-taskable (process-focusable)
((task game-task-control :offset-assert 204)
(ambient ambient-control :inline :offset-assert 208)
(neck-joint-index int32 :offset-assert 224)
(talk-message text-id :offset-assert 228)
(bounce-away symbol :offset-assert 232)
(will-talk symbol :offset-assert 236)
(look-at-me symbol :offset-assert 240)
(hide-during-movie symbol :offset-assert 244)
(talk-distance meters :offset-assert 248)
(talk-height meters :offset-assert 252)
(last-talk time-frame :offset-assert 256)
(want-to-say time-frame :offset-assert 264)
(birth-time time-frame :offset-assert 272)
(slave handle :offset-assert 280)
)
:heap-base #xa0
:method-count-assert 38
:size-assert #x120
:flag-assert #x2600a00120
(:methods
(hide () _type_ :state 27)
(idle () _type_ :state 28)
(active (game-task-event) _type_ :state 29)
(play-game (game-task-event) _type_ :state 30)
(process-taskable-method-31 (_type_) none 31)
(process-taskable-method-32 (_type_) none 32)
(init-art! (_type_) none 33)
(process-taskable-method-34 (_type_) symbol 34)
(get-art-elem (_type_) art-element 35)
(process-taskable-method-36 (_type_) none 36)
(process-taskable-method-37 (_type_) none 37)
)
)
;; definition for method 3 of type process-taskable
(defmethod inspect process-taskable ((this process-taskable))
(when (not this)
(set! this this)
(goto cfg-4)
)
(let ((t9-0 (method-of-type process-focusable inspect)))
(t9-0 this)
)
(format #t "~2Ttask: ~A~%" (-> this task))
(format #t "~2Tambient: #<ambient-control @ #x~X>~%" (-> this ambient))
(format #t "~2Tneck-joint-index: ~D~%" (-> this neck-joint-index))
(format #t "~2Ttalk-message: ~D~%" (-> this talk-message))
(format #t "~2Tbounce-away: ~A~%" (-> this bounce-away))
(format #t "~2Twill-talk: ~A~%" (-> this will-talk))
(format #t "~2Tlook-at-me: ~A~%" (-> this look-at-me))
(format #t "~2Thide-during-movie: ~A~%" (-> this hide-during-movie))
(format #t "~2Ttalk-distance: (meters ~m)~%" (-> this talk-distance))
(format #t "~2Ttalk-height: (meters ~m)~%" (-> this talk-height))
(format #t "~2Tlast-talk: ~D~%" (-> this last-talk))
(format #t "~2Twant-to-say: ~D~%" (-> this want-to-say))
(format #t "~2Tbirth-time: ~D~%" (-> this birth-time))
(format #t "~2Tslave: ~D~%" (-> this slave))
(label cfg-4)
this
)
;; failed to figure out what this is:
0