mirror of
https://github.com/open-goal/jak-project
synced 2026-07-29 15:44:03 -04:00
36f1592b90
Also adds: - BLERC - Minimap (with missing texture for the map, sprites work) - Eco Mine files - Precursor robot boss files - Sewer files - Vehicle files
82 lines
2.1 KiB
Common Lisp
82 lines
2.1 KiB
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: bigmap-h.gc
|
|
;; name in dgo: bigmap-h
|
|
;; dgos: GAME
|
|
|
|
;; DECOMP BEGINS
|
|
|
|
(deftype bigmap-image (structure)
|
|
((clut-offset uint32)
|
|
(image-offset uint32)
|
|
(width uint32)
|
|
(height uint32)
|
|
(data uint8 1)
|
|
)
|
|
)
|
|
|
|
|
|
(deftype bigmap-info (vector)
|
|
((scale float :overlay-at (-> data 2))
|
|
(inv-scale float :overlay-at (-> data 3))
|
|
)
|
|
)
|
|
|
|
|
|
(deftype bigmap-info-array (structure)
|
|
((data bigmap-info 24 :inline)
|
|
)
|
|
)
|
|
|
|
|
|
(deftype bigmap (basic)
|
|
((drawing-flag symbol)
|
|
(loading-flag symbol)
|
|
(bigmap-index uint32)
|
|
(bigmap-image external-art-buffer)
|
|
(tpage external-art-buffer)
|
|
(tpage2 basic)
|
|
(progress-minimap texture-page)
|
|
(progress-minimap2 texture-page)
|
|
(load-index uint32)
|
|
(x0 int32)
|
|
(y0 int32)
|
|
(x1 int32)
|
|
(y1 int32)
|
|
(goal-time float)
|
|
(sprite-tmpl dma-gif-packet :inline)
|
|
(draw-tmpl dma-gif-packet :inline)
|
|
(adgif-tmpl dma-gif-packet :inline)
|
|
(offset vector :inline)
|
|
(size float :overlay-at (-> offset data 2))
|
|
(scale float :overlay-at (-> offset data 3))
|
|
(scroll vector :inline)
|
|
(pos vector4w :inline)
|
|
(color vector4w :inline)
|
|
(corner vector 4 :inline)
|
|
(auto-save-icon-flag symbol)
|
|
(global-flags uint32)
|
|
)
|
|
(:methods
|
|
(new (symbol type) _type_)
|
|
(bigmap-method-9 () none)
|
|
(update (_type_) none)
|
|
(bigmap-method-11 (_type_) symbol)
|
|
(bigmap-method-12 () none)
|
|
(bigmap-method-13 () none)
|
|
(enable-drawing (_type_) none)
|
|
(disable-drawing (_type_) int)
|
|
(bigmap-method-16 (_type_) none)
|
|
(bigmap-method-17 () none)
|
|
(bigmap-method-18 () none)
|
|
(bigmap-method-19 () none)
|
|
(bigmap-method-20 () none)
|
|
(bigmap-method-21 () none)
|
|
(bigmap-method-22 () none)
|
|
)
|
|
)
|
|
|
|
;; DECOMP ENDS
|
|
|
|
(define-extern *bigmap* bigmap) |