DEADSOFTWARE

Move IGameRenderer
authorfredboy <fredboy@protonmail.com>
Tue, 14 May 2024 16:16:13 +0000 (23:16 +0700)
committerfredboy <fredboy@protonmail.com>
Tue, 14 May 2024 16:16:13 +0000 (23:16 +0700)
core/src/ru/deadsoftware/cavedroid/game/render/GameRenderer.kt
core/src/ru/deadsoftware/cavedroid/game/render/IGameRenderer.kt [deleted file]

index 7e40f1712c418ef9575c08550272289e0f849981..c0ded1ec93e81830d0c917e06e973857e2170aca 100644 (file)
@@ -1,5 +1,8 @@
 package ru.deadsoftware.cavedroid.game.render
 
+import com.badlogic.gdx.graphics.g2d.SpriteBatch
+import com.badlogic.gdx.graphics.glutils.ShapeRenderer
+import com.badlogic.gdx.math.Rectangle
 import ru.fredboy.cavedroid.ksp.annotations.GenerateSetMultibindingsModule
 
 @GenerateSetMultibindingsModule(
@@ -8,3 +11,18 @@ import ru.fredboy.cavedroid.ksp.annotations.GenerateSetMultibindingsModule
     moduleName = "RenderModule"
 )
 annotation class GameRenderer
+
+interface IGameRenderer {
+
+    val renderLayer: Int
+
+    /**
+     * When called, [spriteBatch] is beginned!
+     */
+    fun draw(
+        spriteBatch: SpriteBatch,
+        shapeRenderer: ShapeRenderer,
+        viewport: Rectangle,
+        delta: Float
+    )
+}
\ No newline at end of file
diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/IGameRenderer.kt b/core/src/ru/deadsoftware/cavedroid/game/render/IGameRenderer.kt
deleted file mode 100644 (file)
index 88b5744..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-package ru.deadsoftware.cavedroid.game.render
-
-import com.badlogic.gdx.graphics.g2d.SpriteBatch
-import com.badlogic.gdx.graphics.glutils.ShapeRenderer
-import com.badlogic.gdx.math.Rectangle
-
-interface IGameRenderer {
-
-    val renderLayer: Int
-
-    /**
-     * When called, [spriteBatch] is beginned!
-     */
-    fun draw(
-        spriteBatch: SpriteBatch,
-        shapeRenderer: ShapeRenderer,
-        viewport: Rectangle,
-        delta: Float
-    )
-}
\ No newline at end of file