mirror of
https://github.com/open-goal/jak-project
synced 2026-08-17 21:43:27 -04:00
[decomp] improve types around enter-state (#923)
* clean up * restore hack
This commit is contained in:
@@ -332,6 +332,7 @@
|
||||
)
|
||||
|
||||
;; definition for method 38 of type process-taskable
|
||||
;; INFO: Return type mismatch object vs none.
|
||||
(defmethod dummy-38 process-taskable ((obj process-taskable))
|
||||
(if (nonzero? (-> obj cell-for-task))
|
||||
(go (method-of-object obj give-cell))
|
||||
@@ -945,6 +946,7 @@
|
||||
)
|
||||
|
||||
;; definition for function process-taskable-hide-handler
|
||||
;; INFO: Return type mismatch object vs none.
|
||||
(defbehavior
|
||||
process-taskable-hide-handler process-taskable
|
||||
((arg0 process) (arg1 int) (arg2 symbol) (arg3 event-message-block))
|
||||
@@ -1103,46 +1105,53 @@
|
||||
:event
|
||||
(behavior ((arg0 process) (arg1 int) (arg2 symbol) (arg3 event-message-block))
|
||||
(let ((v1-0 arg2))
|
||||
(the-as object (cond
|
||||
((= v1-0 'shadow)
|
||||
(the-as shadow-geo (cond
|
||||
((-> arg3 param 0)
|
||||
(let ((v0-0 (-> self shadow-backup)))
|
||||
(set! (-> self draw shadow) v0-0)
|
||||
v0-0
|
||||
)
|
||||
)
|
||||
(else
|
||||
(set! (-> self draw shadow) #f)
|
||||
(the-as shadow-geo #f)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
((= v1-0 'shadow-min-max)
|
||||
(let ((v1-5 (-> self draw shadow-ctrl)))
|
||||
(let ((a0-5 v1-5))
|
||||
(set!
|
||||
(-> a0-5 settings bot-plane w)
|
||||
(- (the-as float (-> arg3 param 0)))
|
||||
(the-as shadow-geo (cond
|
||||
((= v1-0 'shadow)
|
||||
(the-as shadow-geo (cond
|
||||
((-> arg3 param 0)
|
||||
(let
|
||||
((v0-0 (-> self shadow-backup)))
|
||||
(set! (-> self draw shadow) v0-0)
|
||||
v0-0
|
||||
)
|
||||
)
|
||||
(else
|
||||
(set! (-> self draw shadow) #f)
|
||||
(the-as shadow-geo #f)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
((= v1-0 'shadow-min-max)
|
||||
(let ((v1-5 (-> self draw shadow-ctrl)))
|
||||
(let ((a0-5 v1-5))
|
||||
(set!
|
||||
(-> a0-5 settings bot-plane w)
|
||||
(- (the-as float (-> arg3 param 0)))
|
||||
)
|
||||
)
|
||||
0
|
||||
(set!
|
||||
(-> v1-5 settings top-plane w)
|
||||
(- (the-as float (-> arg3 param 1)))
|
||||
)
|
||||
)
|
||||
(the-as shadow-geo 0)
|
||||
)
|
||||
((= v1-0 'end-mode)
|
||||
(the-as shadow-geo (if (should-display? self)
|
||||
(the-as
|
||||
shadow-geo
|
||||
(go-virtual idle)
|
||||
)
|
||||
(the-as
|
||||
shadow-geo
|
||||
(go-virtual hidden)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
0
|
||||
(set!
|
||||
(-> v1-5 settings top-plane w)
|
||||
(- (the-as float (-> arg3 param 1)))
|
||||
)
|
||||
)
|
||||
(the-as shadow-geo 0)
|
||||
)
|
||||
((= v1-0 'end-mode)
|
||||
(the-as shadow-geo (if (should-display? self)
|
||||
(the-as shadow-geo (go-virtual idle))
|
||||
(the-as shadow-geo (go-virtual hidden))
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -1559,6 +1568,7 @@
|
||||
)
|
||||
|
||||
;; definition for method 42 of type process-taskable
|
||||
;; INFO: Return type mismatch object vs none.
|
||||
(defmethod dummy-42 process-taskable ((obj process-taskable))
|
||||
(cond
|
||||
((not (should-display? obj))
|
||||
|
||||
Reference in New Issue
Block a user