mirror of
https://github.com/open-goal/jak-project
synced 2026-06-01 09:48:00 -04:00
8f68d35cbb
* some more * faster tests * on by default
40 lines
993 B
Common Lisp
40 lines
993 B
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: draw-node-h.gc
|
|
;; name in dgo: draw-node-h
|
|
;; dgos: GAME, ENGINE
|
|
|
|
(deftype draw-node (drawable)
|
|
((child-count uint8 :offset 6)
|
|
(flags uint8 :offset 7)
|
|
(child uint32 :offset 8)
|
|
(distance float :offset 12)
|
|
)
|
|
:method-count-assert 18
|
|
:size-assert #x20
|
|
:flag-assert #x1200000020
|
|
;; field distance is a float printed as hex?
|
|
(:methods
|
|
(dummy-9 () none 9)
|
|
(dummy-10 (_type_) int 10)
|
|
(dummy-11 () none 11)
|
|
(dummy-12 () none 12)
|
|
(dummy-13 () none 13)
|
|
(dummy-14 () none 14)
|
|
(dummy-15 () none 15)
|
|
(dummy-16 () none 16)
|
|
(dummy-17 () none 17)
|
|
)
|
|
)
|
|
|
|
;; the types of these fields are a guess for now.
|
|
(deftype draw-node-dma (structure)
|
|
((banka draw-node 32 :inline :offset-assert 0)
|
|
(bankb draw-node 32 :inline :offset-assert 1024)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x800
|
|
:flag-assert #x900000800
|
|
)
|