summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4ad92d4)
raw | patch | inline | side by side (parent: 4ad92d4)
author | fredboy <fredboy@protonmail.com> | |
Sat, 25 May 2024 04:52:14 +0000 (11:52 +0700) | ||
committer | fredboy <fredboy@protonmail.com> | |
Sat, 25 May 2024 04:52:14 +0000 (11:52 +0700) |
core/src/ru/deadsoftware/cavedroid/MainComponent.java | [deleted file] | patch | blob | history |
core/src/ru/deadsoftware/cavedroid/MainComponent.kt | [new file with mode: 0644] | patch | blob |
diff --git a/core/src/ru/deadsoftware/cavedroid/MainComponent.java b/core/src/ru/deadsoftware/cavedroid/MainComponent.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package ru.deadsoftware.cavedroid;
-
-import dagger.Component;
-import ru.deadsoftware.cavedroid.game.GameScreen;
-import ru.deadsoftware.cavedroid.menu.MenuScreen;
-import ru.deadsoftware.cavedroid.misc.utils.AssetLoader;
-import ru.deadsoftware.cavedroid.prefs.PreferencesStore;
-
-import javax.inject.Singleton;
-
-@Singleton
-@Component(dependencies = {CaveGame.class, PreferencesStore.class})
-public interface MainComponent {
- GameScreen getGameScreen();
-
- MenuScreen getMenuScreen();
-
- MainConfig getMainConfig();
-
- AssetLoader getAssetLoader();
-}
diff --git a/core/src/ru/deadsoftware/cavedroid/MainComponent.kt b/core/src/ru/deadsoftware/cavedroid/MainComponent.kt
--- /dev/null
@@ -0,0 +1,22 @@
+package ru.deadsoftware.cavedroid
+
+import dagger.Component
+import ru.deadsoftware.cavedroid.game.GameScreen
+import ru.deadsoftware.cavedroid.menu.MenuScreen
+import ru.deadsoftware.cavedroid.misc.utils.AssetLoader
+import ru.deadsoftware.cavedroid.prefs.PreferencesStore
+import javax.inject.Singleton
+
+@Singleton
+@Component(dependencies = [CaveGame::class, PreferencesStore::class])
+interface MainComponent {
+
+ val gameScreen: GameScreen
+
+ val menuScreen: MenuScreen
+
+ val mainConfig: MainConfig
+
+ val assetLoader: AssetLoader
+
+}
\ No newline at end of file