2022-06-30 01:22:51 -04:00
|
|
|
;;-*-Lisp-*-
|
|
|
|
(in-package goal)
|
|
|
|
|
|
|
|
;; name: sync-info-h.gc
|
|
|
|
;; name in dgo: sync-info-h
|
|
|
|
;; dgos: ENGINE, GAME
|
|
|
|
|
2022-08-24 00:29:51 -04:00
|
|
|
(defenum sync-flags
|
|
|
|
:type uint64
|
|
|
|
:bitfield #t
|
2022-09-26 19:40:46 -04:00
|
|
|
(pong 0)
|
2022-08-24 00:29:51 -04:00
|
|
|
)
|
|
|
|
|
2022-08-05 16:12:54 -04:00
|
|
|
;; DECOMP BEGINS
|
2022-10-08 12:42:52 -04:00
|
|
|
|
2022-08-24 00:29:51 -04:00
|
|
|
(deftype sync-info-params (structure)
|
2023-01-15 11:33:39 -05:00
|
|
|
((sync-type symbol :offset-assert 0)
|
2022-08-24 00:29:51 -04:00
|
|
|
(sync-flags sync-flags :offset-assert 8)
|
|
|
|
(entity basic :offset-assert 16)
|
|
|
|
(period uint32 :offset-assert 20)
|
|
|
|
(percent float :offset-assert 24)
|
|
|
|
(ease-in float :offset-assert 28)
|
|
|
|
(ease-out float :offset-assert 32)
|
|
|
|
(pause-in float :offset-assert 36)
|
|
|
|
(pause-out float :offset-assert 40)
|
|
|
|
)
|
|
|
|
:method-count-assert 9
|
|
|
|
:size-assert #x2c
|
|
|
|
:flag-assert #x90000002c
|
|
|
|
)
|
|
|
|
|
2022-10-08 12:42:52 -04:00
|
|
|
|
2022-08-24 00:29:51 -04:00
|
|
|
(deftype sync-info (structure)
|
|
|
|
((sync-flags sync-flags :offset-assert 0)
|
|
|
|
(offset float :offset-assert 8)
|
|
|
|
(period uint32 :offset-assert 12)
|
|
|
|
)
|
|
|
|
:method-count-assert 16
|
|
|
|
:size-assert #x10
|
|
|
|
:flag-assert #x1000000010
|
|
|
|
(:methods
|
2022-09-26 19:40:46 -04:00
|
|
|
(get-current-phase-no-mod (_type_) float 9)
|
2022-08-28 10:45:07 -04:00
|
|
|
(get-phase-offset (_type_) float 10)
|
2022-09-26 19:40:46 -04:00
|
|
|
(get-norm! (_type_ int) float 11)
|
|
|
|
(get-scaled-val! (_type_ float int) float 12)
|
|
|
|
(initialize! (_type_ sync-info-params) none 13)
|
|
|
|
(get-timeframe-offset! (_type_ time-frame) time-frame 14)
|
|
|
|
(sync-now! (_type_ float) none 15)
|
2022-08-24 00:29:51 -04:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2022-10-08 12:42:52 -04:00
|
|
|
|
2022-08-24 00:29:51 -04:00
|
|
|
(deftype sync-linear (sync-info)
|
|
|
|
()
|
2023-01-11 19:07:35 -05:00
|
|
|
:pack-me
|
2022-08-24 00:29:51 -04:00
|
|
|
:method-count-assert 16
|
|
|
|
:size-assert #x10
|
|
|
|
:flag-assert #x1000000010
|
|
|
|
)
|
|
|
|
|
2022-10-08 12:42:52 -04:00
|
|
|
|
2022-08-24 00:29:51 -04:00
|
|
|
(deftype sync-eased (sync-info)
|
|
|
|
((tlo float :offset-assert 16)
|
|
|
|
(thi float :offset-assert 20)
|
|
|
|
(ylo float :offset-assert 24)
|
|
|
|
(m2 float :offset-assert 28)
|
|
|
|
(yend float :offset-assert 32)
|
|
|
|
(pause-in float :offset-assert 36)
|
|
|
|
(pause-out float :offset-assert 40)
|
|
|
|
)
|
2022-10-08 12:42:52 -04:00
|
|
|
:pack-me
|
2022-08-24 00:29:51 -04:00
|
|
|
:method-count-assert 16
|
|
|
|
:size-assert #x2c
|
|
|
|
:flag-assert #x100000002c
|
|
|
|
)
|
|
|
|
|
2022-10-08 12:42:52 -04:00
|
|
|
|
2022-08-24 00:29:51 -04:00
|
|
|
(deftype sync-paused (sync-info)
|
|
|
|
((pause-in float :offset-assert 16)
|
|
|
|
(pause-out float :offset-assert 20)
|
|
|
|
)
|
|
|
|
:method-count-assert 16
|
|
|
|
:size-assert #x18
|
|
|
|
:flag-assert #x1000000018
|
|
|
|
)
|
|
|
|
|
2022-10-08 12:42:52 -04:00
|
|
|
|
2022-08-24 00:29:51 -04:00
|
|
|
(deftype delayed-rand-float (structure)
|
|
|
|
((min-time int32 :offset-assert 0)
|
|
|
|
(max-time int32 :offset-assert 4)
|
|
|
|
(max-val float :offset-assert 8)
|
|
|
|
(timer int32 :offset-assert 12)
|
|
|
|
(start-time time-frame :offset-assert 16)
|
|
|
|
(value float :offset-assert 24)
|
|
|
|
)
|
2023-01-11 19:07:35 -05:00
|
|
|
:pack-me
|
2022-08-24 00:29:51 -04:00
|
|
|
:method-count-assert 13
|
|
|
|
:size-assert #x1c
|
|
|
|
:flag-assert #xd0000001c
|
|
|
|
(:methods
|
2022-09-26 19:40:46 -04:00
|
|
|
(set-params! (_type_ int int float) float 9)
|
|
|
|
(reset! (_type_) float 10)
|
|
|
|
(update! (_type_) float 11)
|
|
|
|
(update-and-clear! (_type_) none 12)
|
2022-08-24 00:29:51 -04:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2022-10-08 12:42:52 -04:00
|
|
|
|
2022-08-24 00:29:51 -04:00
|
|
|
(deftype oscillating-float (structure)
|
|
|
|
((value float :offset-assert 0)
|
|
|
|
(target float :offset-assert 4)
|
|
|
|
(vel float :offset-assert 8)
|
|
|
|
(max-vel float :offset-assert 12)
|
|
|
|
(damping float :offset-assert 16)
|
|
|
|
(accel float :offset-assert 20)
|
|
|
|
)
|
2023-01-11 19:07:35 -05:00
|
|
|
:allow-misaligned
|
2022-08-24 00:29:51 -04:00
|
|
|
:method-count-assert 11
|
|
|
|
:size-assert #x18
|
|
|
|
:flag-assert #xb00000018
|
|
|
|
(:methods
|
2022-09-26 19:40:46 -04:00
|
|
|
(set-params! (_type_ float float float float) float 9)
|
|
|
|
(update! (_type_ float) float 10)
|
2022-08-24 00:29:51 -04:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2022-10-08 12:42:52 -04:00
|
|
|
|
2022-08-24 00:29:51 -04:00
|
|
|
(deftype bouncing-float (structure)
|
|
|
|
((osc oscillating-float :inline :offset-assert 0)
|
|
|
|
(max-value float :offset-assert 24)
|
|
|
|
(min-value float :offset-assert 28)
|
|
|
|
(elasticity float :offset-assert 32)
|
|
|
|
(state int32 :offset-assert 36)
|
|
|
|
)
|
2023-01-11 19:07:35 -05:00
|
|
|
:allow-misaligned
|
2022-08-24 00:29:51 -04:00
|
|
|
:method-count-assert 13
|
|
|
|
:size-assert #x28
|
|
|
|
:flag-assert #xd00000028
|
|
|
|
(:methods
|
2022-09-26 19:40:46 -04:00
|
|
|
(set-params! (_type_ float float float float float float float) float 9)
|
|
|
|
(update! (_type_ float) float 10)
|
|
|
|
(at-min? (_type_) symbol 11)
|
|
|
|
(at-max? (_type_) symbol 12)
|
2022-08-24 00:29:51 -04:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2022-10-08 12:42:52 -04:00
|
|
|
|
2022-08-24 00:29:51 -04:00
|
|
|
(deftype delayed-rand-vector (structure)
|
|
|
|
((min-time int32 :offset-assert 0)
|
|
|
|
(max-time int32 :offset-assert 4)
|
|
|
|
(xz-max float :offset-assert 8)
|
|
|
|
(y-max float :offset-assert 12)
|
|
|
|
(timer int32 :offset-assert 16)
|
|
|
|
(start-time time-frame :offset-assert 24)
|
|
|
|
(value vector :inline :offset-assert 32)
|
|
|
|
)
|
|
|
|
:method-count-assert 13
|
|
|
|
:size-assert #x30
|
|
|
|
:flag-assert #xd00000030
|
|
|
|
(:methods
|
2022-09-26 19:40:46 -04:00
|
|
|
(set-params! (_type_ int int float float) vector 9)
|
|
|
|
(update-now! (_type_) vector 10)
|
|
|
|
(update-with-delay! (_type_) vector 11)
|
|
|
|
(update-with-delay-or-reset! (_type_) vector 12)
|
2022-08-24 00:29:51 -04:00
|
|
|
)
|
|
|
|
)
|
2022-08-05 16:12:54 -04:00
|
|
|
|
2022-10-08 12:42:52 -04:00
|
|
|
|
2022-08-24 00:29:51 -04:00
|
|
|
(deftype oscillating-vector (structure)
|
|
|
|
((value vector :inline :offset-assert 0)
|
|
|
|
(target vector :inline :offset-assert 16)
|
|
|
|
(vel vector :inline :offset-assert 32)
|
|
|
|
(max-vel float :offset-assert 48)
|
|
|
|
(damping float :offset-assert 52)
|
|
|
|
(accel float :offset-assert 56)
|
|
|
|
)
|
|
|
|
:method-count-assert 11
|
|
|
|
:size-assert #x3c
|
|
|
|
:flag-assert #xb0000003c
|
|
|
|
(:methods
|
2022-09-26 19:40:46 -04:00
|
|
|
(set-params! (_type_ vector float float float) vector 9)
|
|
|
|
(update! (_type_ vector) vector 10)
|
2022-08-24 00:29:51 -04:00
|
|
|
)
|
|
|
|
)
|