Files
jak-project/test/decompiler/reference/levels/beach/bird-lady-beach_REF.gc
T
ManDude 59a12029a0 [decomp] cleanup default-menu, fix dangerous IOP bug, autoconvert ints in pairs to/from bintegers (#997)
* fix a couple macros in ref tests

* `default-menu` cleanup

* add `find-instance-by-name` func

* improve debugger slightly hopefully

* fix IOP PLAY buffer overrun bug

* fix `default-menu` more

* automatically convert ints in static pairs to/from bintegers

* fix test

* clang

* fix a few more lambdas

* update refs

* add custom menu cuz cool

* oopsie! also make `default-level` and `halfpipe` go away

* add camera teleport menu

* update types in debug menu
2021-12-09 18:39:40 -05:00

135 lines
4.2 KiB
Common Lisp
Vendored
Generated

;;-*-Lisp-*-
(in-package goal)
;; definition of type bird-lady-beach
(deftype bird-lady-beach (process-taskable)
((flutflut handle :offset-assert 384)
(egg handle :offset-assert 392)
)
:heap-base #x120
:method-count-assert 53
:size-assert #x190
:flag-assert #x3501200190
)
;; definition for method 3 of type bird-lady-beach
(defmethod inspect bird-lady-beach ((obj bird-lady-beach))
(let ((t9-0 (method-of-type process-taskable inspect)))
(t9-0 obj)
)
(format #t "~T~Tflutflut: ~D~%" (-> obj flutflut))
(format #t "~T~Tegg: ~D~%" (-> obj egg))
obj
)
;; failed to figure out what this is:
(defskelgroup *bird-lady-beach-sg* bird-lady-beach
0
3
((1 (meters 999999)))
:bounds (static-spherem 0 0 0 4)
:longest-edge (meters 0)
:shadow 2
)
;; failed to figure out what this is:
(defstate idle (bird-lady-beach)
:virtual #t
:enter
(behavior ()
(when (not (should-display? self))
(let ((a0-2 (handle->process (-> self flutflut))))
(if a0-2
(deactivate a0-2)
)
)
(let ((a0-6 (handle->process (-> self egg))))
(if a0-6
(deactivate a0-6)
)
)
(go-virtual hidden)
)
((-> (method-of-type process-taskable idle) enter))
(none)
)
)
;; definition for method 32 of type bird-lady-beach
(defmethod play-anim! bird-lady-beach ((obj bird-lady-beach) (arg0 symbol))
(case (current-status (-> obj tasks))
(((task-status need-reward-speech))
(when arg0
(set! (-> obj cell-for-task) (current-task (-> obj tasks)))
(close-current! (-> obj tasks))
(let ((s5-1 (get-process *default-dead-pool* manipy #x4000)))
(set! (-> obj flutflut)
(ppointer->handle
(when s5-1
(let ((t9-4 (method-of-type manipy activate)))
(t9-4 (the-as manipy s5-1) obj 'manipy (the-as pointer #x70004000))
)
(run-now-in-process s5-1 manipy-init (-> obj root-override trans) (-> obj entity) *flutflut-naked-sg* #f)
(-> s5-1 ppointer)
)
)
)
)
(send-event (handle->process (-> obj flutflut)) 'anim-mode 'clone-anim)
(send-event (handle->process (-> obj flutflut)) 'blend-shape #t)
(let ((s5-2 (get-process *default-dead-pool* manipy #x4000)))
(set! (-> obj egg)
(ppointer->handle
(when s5-2
(let ((t9-9 (method-of-type manipy activate)))
(t9-9 (the-as manipy s5-2) obj 'manipy (the-as pointer #x70004000))
)
(run-now-in-process s5-2 manipy-init (-> obj root-override trans) (-> obj entity) *flutflutegg-sg* #f)
(-> s5-2 ppointer)
)
)
)
)
(send-event (handle->process (-> obj egg)) 'anim-mode 'clone-anim)
)
(new 'static 'spool-anim
:name "bird-lady-beach-resolution"
:index 4
:parts 10
:command-list
'((141 joint "cameraB") (535 joint "camera") (696 joint "cameraB") (758 joint "camera") (813 joint "cameraB"))
)
)
(else
(if arg0
(format
0
"ERROR: <GMJ>: ~S playing anim for task status ~S~%"
(-> obj name)
(task-status->string (current-status (-> obj tasks)))
)
)
(-> obj draw art-group data 3)
)
)
)
;; definition for method 31 of type bird-lady-beach
(defmethod get-art-elem bird-lady-beach ((obj bird-lady-beach))
(-> obj draw art-group data 3)
)
;; definition for method 39 of type bird-lady-beach
(defmethod should-display? bird-lady-beach ((obj bird-lady-beach))
(= (current-status (-> obj tasks)) (task-status need-reward-speech))
)
;; definition for method 11 of type bird-lady-beach
(defmethod init-from-entity! bird-lady-beach ((obj bird-lady-beach) (arg0 entity-actor))
(dummy-40 obj arg0 *bird-lady-beach-sg* 3 51 (new 'static 'vector :y 4096.0 :w 4096.0) 5)
(set! (-> obj tasks) (get-task-control (game-task beach-flutflut)))
(set! (-> obj sound-flava) (the-as uint 7))
(dummy-42 obj)
(none)
)