Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeodrippe committed Jan 24, 2025
1 parent 103f2c3 commit 82dbc1c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/vybe/flecs.clj
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@
(def on-instantiate-inherit-id
(vf.c/vybe-pair (flecs/EcsOnInstantiate) (flecs/EcsInherit)))

(def ^:private doc-description-name-id
(vf.c/vybe-pair (flecs/FLECS_IDEcsDocDescriptionID_) (flecs/EcsName)))

(defn- -entity-components
[wptr e-id]
(let [{:keys [array count]} (-> (vf.c/ecs-get-type wptr e-id)
Expand All @@ -352,7 +355,8 @@
(let [c-id (.getAtIndex ^MemorySegment array ValueLayout/JAVA_LONG idx)
*c-cache (delay (->comp-rep wptr c-id))]
(cond
(= c-id on-instantiate-inherit-id)
;; Exclude from printing.
(contains? #{on-instantiate-inherit-id doc-description-name-id} c-id)
nil

(vf.c/ecs-id-is-pair c-id)
Expand Down

0 comments on commit 82dbc1c

Please sign in to comment.