From ca67da5ca90819bdbf2f0cda78d28456a2b58d76 Mon Sep 17 00:00:00 2001 From: fredboy Date: Tue, 14 May 2024 23:16:13 +0700 Subject: [PATCH] Move IGameRenderer --- .../cavedroid/game/render/GameRenderer.kt | 18 +++++++++++++++++ .../cavedroid/game/render/IGameRenderer.kt | 20 ------------------- 2 files changed, 18 insertions(+), 20 deletions(-) delete mode 100644 core/src/ru/deadsoftware/cavedroid/game/render/IGameRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/GameRenderer.kt b/core/src/ru/deadsoftware/cavedroid/game/render/GameRenderer.kt index 7e40f17..c0ded1e 100644 --- a/core/src/ru/deadsoftware/cavedroid/game/render/GameRenderer.kt +++ b/core/src/ru/deadsoftware/cavedroid/game/render/GameRenderer.kt @@ -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 index 88b5744..0000000 --- a/core/src/ru/deadsoftware/cavedroid/game/render/IGameRenderer.kt +++ /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 -- 2.29.2