mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
eb53f410e5
* test village1, beach, jungle actors * fix jungle actors * more anims and fixes * Update launch.vs.json * fix bad `robotboss` decomp * fix `robotboss` * Update robotboss.gc * fix `mother-spider-proj` * fix detach (windows) * update refs * village2 spools * type fixes + a few more spols + add append/not-append to goos * fix beach, misty, village1, village3, lavatube * fix snow entities * fix `target-flut` * update refs * forgot one * fail * sound fixes * fix test * complain if `heap-base` is bad * correct `add-spheres!` decomp errors * fix citadel * fix target `change-state` handler * fix `final-door` state * fix `target-flut-falling` * fix deftypes * oopsie * move heap memory display behind a toggle and make it fancy * Update gstate.gc
57 lines
1.8 KiB
Common Lisp
57 lines
1.8 KiB
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: effect-control-h.gc
|
|
;; name in dgo: effect-control-h
|
|
;; dgos: GAME, ENGINE
|
|
|
|
(define-extern effect-param->sound-spec (function sound-spec (pointer float) int sound-spec))
|
|
|
|
;; DECOMP BEGINS
|
|
|
|
(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 (pointer res-tag) :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)
|
|
(TODO-RENAME-9 (_type_) none 9)
|
|
(dummy-10 (_type_ symbol float int) object 10)
|
|
(dummy-11 (_type_ symbol float int basic pat-surface) none 11)
|
|
(dummy-12 (_type_ symbol float int basic sound-name) int 12)
|
|
(set-channel-offset! (_type_ int) none 13)
|
|
(TODO-RENAME-14 (_type_ float float float) none 14)
|
|
)
|
|
)
|
|
|
|
|
|
(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)
|
|
)
|
|
)
|
|
)
|
|
|
|
(defmethod set-channel-offset! effect-control ((obj effect-control) (arg0 int))
|
|
(set! (-> obj channel-offset) arg0)
|
|
0
|
|
(none)
|
|
)
|