Add particle-effect
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
(ns play-clj.utils
|
||||
(:require [clojure.string :as s])
|
||||
(:import [com.badlogic.gdx.graphics.g2d NinePatch TextureRegion]
|
||||
(:import [com.badlogic.gdx.graphics.g2d NinePatch ParticleEffect
|
||||
TextureRegion]
|
||||
[com.badlogic.gdx.scenes.scene2d Actor]
|
||||
[com.badlogic.gdx.utils Array ArrayMap]))
|
||||
|
||||
@@ -197,6 +198,10 @@ new object to be created each time a field is set)
|
||||
[obj]
|
||||
{:type :nine-patch :object obj})
|
||||
|
||||
(defmethod create-entity ParticleEffect
|
||||
[obj]
|
||||
{:type :particle-effect :object obj})
|
||||
|
||||
(defmethod create-entity Actor
|
||||
[obj]
|
||||
{:type :actor :object obj})
|
||||
|
||||
Reference in New Issue
Block a user