Skip to content

Commit

Permalink
Add support for the progressionTrigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed May 24, 2024
1 parent 3820dd6 commit 4f88ea5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions format.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,12 @@
(define-element shirakumo-checkpoint (shirakumo-trigger-data)
((spawn-point :initform #(0.0 0.0 0.0))))

(define-element shirakumo-progression (shirakumo-trigger-data)
((state :initform "progression" :parse :keyword)
(value :initform 1.0)
(mode :initform :inc :parse :Keyword)
(condition :initform "T")))

(define-element physics-material (indexed-element)
((static-friction :initform 0.6)
(dynamic-friction :initform 0.6)
Expand Down
6 changes: 6 additions & 0 deletions package.lisp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(defpackage #:org.shirakumo.fraf.gltf
(:use #:cl)
(:shadow #:condition)
(:local-nicknames
(#:mmap #:org.shirakumo.fraf.trial.mmap)
(#:sequences #:org.shirakumo.trivial-extensible-sequences))
Expand Down Expand Up @@ -253,6 +254,11 @@
#:kill
#:shirakumo-checkpoint
#:spawn-point
#:shirakumo-progression
#:state
#:value
#:mode
#:condition
#:physics-material
#:static-friction
#:dynamic-friction
Expand Down
2 changes: 2 additions & 0 deletions translations.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@
(%parse-from (gethash "killvolume" json) 'shirakumo-killvolume gltf))
((gethash "checkpoint" json)
(%parse-from (gethash "checkpoint" json) 'shirakumo-checkpoint gltf))
((gethash "progressionTrigger" json)
(%parse-from (gethash "progressionTrigger" json) 'shirakumo-progression gltf))
(T
(call-next-method))))

Expand Down

0 comments on commit 4f88ea5

Please sign in to comment.