Files
jak-project/goal_src/jak2/engine/spatial-hash/spatial-hash-h.gc
T

143 lines
4.3 KiB
Common Lisp

;;-*-Lisp-*-
(in-package goal)
;; name: spatial-hash-h.gc
;; name in dgo: spatial-hash-h
;; dgos: ENGINE, GAME
;; DECOMP BEGINS
(deftype grid-hash-word (uint8)
()
:method-count-assert 9
:size-assert #x1
:flag-assert #x900000001
)
(deftype grid-hash-box (structure)
((min uint8 3 :offset-assert 0)
(max uint8 3 :offset-assert 3)
)
:pack-me
:method-count-assert 9
:size-assert #x6
:flag-assert #x900000006
)
(deftype grid-hash (basic)
((work basic :offset-assert 4)
(search-box grid-hash-box :inline :offset-assert 8)
(bucket-size int16 :offset-assert 14)
(axis-scale uint32 3 :offset-assert 16)
(dimension-array uint8 3 :offset-assert 28)
(vertical-cell-count int8 :offset-assert 31)
(bucket-array uint32 :offset-assert 32)
(box-min uint32 3 :offset-assert 36)
(box-max uint32 3 :offset-assert 48)
(object-count int16 :offset-assert 60)
(bucket-count int16 :offset-assert 62)
(min-cell-size float :offset-assert 64)
(bucket-memory-size int32 :offset-assert 68)
(mem-bucket-array uint32 :offset-assert 72)
(spr-bucket-array uint32 :offset-assert 76)
(debug-draw basic :offset-assert 80)
(use-scratch-ram basic :offset-assert 84)
)
:method-count-assert 25
:size-assert #x58
:flag-assert #x1900000058
(:methods
(grid-hash-method-9 () none 9)
(grid-hash-method-10 () none 10)
(grid-hash-method-11 () none 11)
(grid-hash-method-12 () none 12)
(grid-hash-method-13 () none 13)
(grid-hash-method-14 () none 14)
(grid-hash-method-15 () none 15)
(grid-hash-method-16 () none 16)
(grid-hash-method-17 () none 17)
(grid-hash-method-18 () none 18)
(grid-hash-method-19 () none 19)
(grid-hash-method-20 () none 20)
(grid-hash-method-21 () none 21)
(grid-hash-method-22 () none 22)
(grid-hash-method-23 () none 23)
(grid-hash-method-24 () none 24)
)
)
(deftype find-nav-sphere-ids-params (structure)
((bsphere sphere :inline :offset-assert 0)
(y-threshold float :offset-assert 16)
(len int16 :offset-assert 20)
(max-len int16 :offset-assert 22)
(mask uint8 :offset-assert 24)
(array uint32 :offset-assert 28)
)
:method-count-assert 9
:size-assert #x20
:flag-assert #x900000020
)
(deftype sphere-hash (grid-hash)
((sphere-array (inline-array sphere) :offset-assert 88)
(max-object-count int16 :offset-assert 92)
(pad int16 :offset-assert 94)
(mem-sphere-array uint32 :offset-assert 96)
(spr-sphere-array uint32 :offset-assert 100)
)
:method-count-assert 34
:size-assert #x68
:flag-assert #x2200000068
(:methods
(sphere-hash-method-25 () none 25)
(sphere-hash-method-26 () none 26)
(sphere-hash-method-27 () none 27)
(sphere-hash-method-28 () none 28)
(sphere-hash-method-29 () none 29)
(sphere-hash-method-30 (_type_ find-nav-sphere-ids-params) none 30)
(sphere-hash-method-31 () none 31)
(sphere-hash-method-32 () none 32)
(sphere-hash-method-33 () none 33)
)
)
(deftype hash-object-info (structure)
((object basic :offset-assert 0)
)
:method-count-assert 9
:size-assert #x4
:flag-assert #x900000004
)
(deftype spatial-hash (sphere-hash)
((object-array uint32 :offset-assert 104)
(mem-object-array uint32 :offset-assert 108)
(spr-object-array uint32 :offset-assert 112)
)
:method-count-assert 41
:size-assert #x74
:flag-assert #x2900000074
(:methods
(spatial-hash-method-34 () none 34)
(spatial-hash-method-35 () none 35)
(spatial-hash-method-36 () none 36)
(spatial-hash-method-37 () none 37)
(spatial-hash-method-38 () none 38)
(spatial-hash-method-39 () none 39)
(spatial-hash-method-40 () none 40)
)
)
0