mirror of
https://github.com/open-goal/jak-project
synced 2026-06-29 11:41:11 -04:00
dd959d0d0d
* decomp: finish `babak` - :code is called in `(code nav-enemy-patrol babak)` * decomp: almost finish `process-taskable` * blocked: mistycannon / pelican * decomp: finish `babak-with-cannon` write a script to fix gsrc * decomp: finish `process-taskable` * decomp: finish `flutflut` and `yakow` * decomp: finish `fishermans-boat` * blocked: state decomp `training-obs` * decomp: finish `muse` * decomp: finish `bonelurker` * blocked: state decomp in `quicksandlurker`| `balloonlurker` * decomp: finish `assistant-village2` * scripts: script to help updating goal_src * starting to update goal_src * tests: update ref tests * src: more src updating * src: waiting on `process-taskable` and `muse` * blocked: `citb-plat` state decomp * decomp: finish `square-platform` * blocked: `orbit-plat` due to overlays + static data * decomp: finish `qbert-plat` * blocked: almost finish `misty-conveyor`, sparticle-callback * blocked: jungle-mirrors * blocked: state decomp in `swamp-blimp` * decomp: finish `swamp-bat` * decomp: finish `swamp-rat` * decomp: finish `swamp-rat-nest` * blocked: state decomp `kermit` * decomp: finish `cavecrystal-light` * decomp: finish `spiderwebs` * blocked: state decomp `dark-crystal` * decomp: finish `baby-spider` * decomp: finish `mother-spider-h` * decomp: finish `mother-spider-proj` * blocked: state decomp in `gnawer` * blocked: state decomp in `driller-lurker` * blocked: `sun-exit-chamber` breaks when adding handle cast * decomp: finish `sunken-water` * blocked: `target-tube` ShortCircuitElement::push_to_stack * decomp: finish `sunken-fish` * blocked: `minecart` decomp crash when adding stack cast * decomp: finish `assistant-village3` * decomp: finish `sage-village3` * blocked: `cave-trap` done but ran into `go` issue * blocked: `spider-egg` state decomp * decomp: finish `target-snowball` * blocked/stuck: `target-ice` decomp issue around cpad * pausing: ice-cube has some weird collide-shape-prim handling * blocked: `snow-ball` state decomp * blocked: `snow-bumper` state decomp * decomp: finish `snow-ram-h` * decomp: finish `yeti` * decomp: finish `assistant-lavatube` * re-enable the float cast log * decomp: updating to new sparticle definitions * decomp: address feedback up to `swamp-rat-nest` * address remaining feedback * all-types: move the `pointer` def * add back temporary `hud-hidden?`
76 lines
2.2 KiB
Common Lisp
Vendored
76 lines
2.2 KiB
Common Lisp
Vendored
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; definition of type effect-control
|
|
(deftype effect-control (basic)
|
|
((process process-drawable :offset-assert 4)
|
|
(flags uint32 :offset-assert 8)
|
|
(last-frame-group art-joint-anim :offset-assert 12)
|
|
(last-frame-num float :offset-assert 16)
|
|
(channel-offset int32 :offset-assert 20)
|
|
(res res-lump :offset-assert 24)
|
|
(name uint32 :offset-assert 28)
|
|
(param uint32 :offset-assert 32)
|
|
)
|
|
:method-count-assert 15
|
|
:size-assert #x24
|
|
:flag-assert #xf00000024
|
|
(:methods
|
|
(new (symbol type process-drawable) _type_ 0)
|
|
(dummy-9 () none 9)
|
|
(dummy-10 (_type_ symbol float int) none 10)
|
|
(dummy-11 () none 11)
|
|
(dummy-12 () none 12)
|
|
(set-channel-offset! (_type_ int) none 13)
|
|
(dummy-14 () none 14)
|
|
)
|
|
)
|
|
|
|
;; definition for method 3 of type effect-control
|
|
(defmethod inspect effect-control ((obj effect-control))
|
|
(format #t "[~8x] ~A~%" obj (-> obj type))
|
|
(format #t "~Tprocess: ~A~%" (-> obj process))
|
|
(format #t "~Tflags: #x~X~%" (-> obj flags))
|
|
(format #t "~Tlast-frame-group: ~A~%" (-> obj last-frame-group))
|
|
(format #t "~Tlast-frame-num: ~f~%" (-> obj last-frame-num))
|
|
(format #t "~Tchannel-offset: ~D~%" (-> obj channel-offset))
|
|
(format #t "~Tres: ~A~%" (-> obj res))
|
|
(format #t "~Tname: #x~X~%" (-> obj name))
|
|
(format #t "~Tparam: #x~X~%" (-> obj param))
|
|
obj
|
|
)
|
|
|
|
;; definition for method 0 of type effect-control
|
|
(defmethod
|
|
new
|
|
effect-control
|
|
((allocation symbol) (type-to-make type) (arg0 process-drawable))
|
|
(cond
|
|
((res-lump-struct (-> arg0 draw jgeo extra) 'effect-name structure)
|
|
(let
|
|
((v0-1
|
|
(object-new allocation type-to-make (the-as int (-> type-to-make size)))
|
|
)
|
|
)
|
|
(set! (-> v0-1 process) arg0)
|
|
(set! (-> v0-1 last-frame-group) #f)
|
|
v0-1
|
|
)
|
|
)
|
|
(else
|
|
(the-as effect-control #f)
|
|
)
|
|
)
|
|
)
|
|
|
|
;; definition for method 13 of type effect-control
|
|
;; INFO: Return type mismatch int vs none.
|
|
(defmethod set-channel-offset! effect-control ((obj effect-control) (arg0 int))
|
|
(set! (-> obj channel-offset) arg0)
|
|
0
|
|
(none)
|
|
)
|
|
|
|
;; failed to figure out what this is:
|
|
0
|