mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
da5aef8d60
Almost done: - `target-handler` (`(none)` event handler casts and CFG error) - `target2` (`(none)` event handler casts) - `powerups` (`cloud-track` does some weird stuff with `handle`s) - `gun-states` (CFG error) Some progress in: - `water-flow` Additionally: - Clean up the two year old Jak 3 config file and add a config skeleton (disassembling seems to not have worked, but I was able to dump obj files and the `all_scripts` file) - Fix automatic skelgroup detection and `defskelgroup` macro for Jak 2 (closes #1950) - When a function decompiles without any major errors, a warning is generated with the op id for each unresolved load and store that will likely fail to compile (closes #1933)
132 lines
3.2 KiB
Common Lisp
132 lines
3.2 KiB
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: region-h.gc
|
|
;; name in dgo: region-h
|
|
;; dgos: ENGINE, GAME
|
|
|
|
(declare-type region-prim-area structure)
|
|
|
|
;; DECOMP BEGINS
|
|
|
|
(deftype region (structure)
|
|
((id uint32 :offset-assert 0)
|
|
(on-enter pair :offset-assert 4)
|
|
(on-inside pair :offset-assert 8)
|
|
(on-exit pair :offset-assert 12)
|
|
)
|
|
:method-count-assert 10
|
|
:size-assert #x10
|
|
:flag-assert #xa00000010
|
|
(:methods
|
|
(region-method-9 (_type_ vector) symbol 9)
|
|
)
|
|
)
|
|
|
|
|
|
(deftype region-array (inline-array-class)
|
|
((data region :inline :dynamic :offset-assert 16)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x10
|
|
:flag-assert #x900000010
|
|
)
|
|
|
|
|
|
(set! (-> region-array heap-base) (the-as uint 16))
|
|
|
|
(deftype drawable-region-prim (drawable)
|
|
((region region :offset 8)
|
|
)
|
|
:method-count-assert 20
|
|
:size-assert #x20
|
|
:flag-assert #x1400000020
|
|
(:methods
|
|
(debug-draw-region (_type_ int) none 17)
|
|
(track-region (_type_ region-prim-area) symbol 18)
|
|
(within-area? (_type_ region-prim-area) symbol 19)
|
|
)
|
|
)
|
|
|
|
|
|
(deftype drawable-tree-region-prim (drawable-tree)
|
|
((name basic :offset 8)
|
|
(data2 drawable-inline-array :dynamic :offset 32)
|
|
)
|
|
:method-count-assert 19
|
|
:size-assert #x20
|
|
:flag-assert #x1300000020
|
|
(:methods
|
|
(drawable-tree-region-prim-method-17 (_type_ vector) symbol 17)
|
|
(debug-print (_type_ vector object) none 18)
|
|
)
|
|
)
|
|
|
|
|
|
(deftype drawable-inline-array-region-prim (drawable-inline-array)
|
|
((data drawable-region-prim 1 :inline :offset-assert 32)
|
|
(pad uint8 4 :offset-assert 64)
|
|
)
|
|
:method-count-assert 17
|
|
:size-assert #x44
|
|
:flag-assert #x1100000044
|
|
)
|
|
|
|
(deftype drawable-region-sphere (drawable-region-prim)
|
|
()
|
|
:method-count-assert 20
|
|
:size-assert #x20
|
|
:flag-assert #x1400000020
|
|
)
|
|
|
|
|
|
(deftype region-face-data (structure)
|
|
((normal vector :inline :offset-assert 0)
|
|
(normal-offset float :offset 12)
|
|
(num-points uint32 :offset-assert 16)
|
|
(points vector :inline :dynamic :offset-assert 32)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x20
|
|
:flag-assert #x900000020
|
|
)
|
|
|
|
|
|
(deftype drawable-region-face (drawable-region-prim)
|
|
((data region-face-data :offset 12)
|
|
)
|
|
:method-count-assert 20
|
|
:size-assert #x20
|
|
:flag-assert #x1400000020
|
|
)
|
|
|
|
|
|
(deftype region-face-array (inline-array-class)
|
|
((data region-face-data :dynamic :offset 20)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x14
|
|
:flag-assert #x900000014
|
|
)
|
|
|
|
|
|
(set! (-> region-face-array heap-base) (the-as uint 32))
|
|
|
|
(deftype drawable-region-volume (drawable-region-prim)
|
|
((faces region-face-array :offset 12)
|
|
)
|
|
:method-count-assert 20
|
|
:size-assert #x20
|
|
:flag-assert #x1400000020
|
|
)
|
|
|
|
|
|
(deftype region-prim-list (structure)
|
|
((num-items int32 :offset-assert 0)
|
|
(items drawable-region-prim 320 :offset-assert 4)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x504
|
|
:flag-assert #x900000504
|
|
)
|