From 6cfaee44cc3731b18ec0a400359f9dcfeeed6f5e Mon Sep 17 00:00:00 2001 From: fredboy Date: Sat, 25 May 2024 16:27:46 +0700 Subject: [PATCH] Restructure project and use kotlin dsl --- android/assets | 1 - android/build.gradle | 147 ------------------ android/build.gradle.kts | 131 ++++++++++++++++ android/project.properties | 9 -- .../debug/res/drawable-hdpi/ic_launcher.png | Bin .../debug/res/drawable-mdpi/ic_launcher.png | Bin .../debug/res/drawable-xhdpi/ic_launcher.png | Bin .../debug/res/drawable-xxhdpi/ic_launcher.png | Bin .../res/drawable-xxxhdpi/ic_launcher.png | Bin .../res/drawable/ic_launcher_foreground.xml | 0 .../{ => src}/debug/res/values/strings.xml | 0 android/{ => src/main}/AndroidManifest.xml | 0 android/src/main/assets | 1 + .../deadsoftware/cavedroid/AndroidLauncher.kt | 0 .../cavedroid/AndroidPreferencesStore.kt | 0 .../res/drawable-anydpi-v26/ic_launcher.xml | 0 .../main}/res/drawable-hdpi/ic_launcher.png | Bin .../main}/res/drawable-mdpi/ic_launcher.png | Bin .../main}/res/drawable-xhdpi/ic_launcher.png | Bin .../main}/res/drawable-xxhdpi/ic_launcher.png | Bin .../res/drawable-xxxhdpi/ic_launcher.png | Bin .../res/drawable/ic_launcher_background.xml | 0 .../res/drawable/ic_launcher_foreground.xml | 0 android/{ => src/main}/res/values/strings.xml | 0 android/{ => src/main}/res/values/styles.xml | 0 .../main}/res/xml/backup_descriptor.xml | 0 build.gradle | 44 ------ build.gradle.kts | 30 ++++ buildSrc/build.gradle.kts | 7 + buildSrc/src/main/kotlin/ApplicationInfo.kt | 11 ++ buildSrc/src/main/kotlin/Dependencies.kt | 49 ++++++ buildSrc/src/main/kotlin/Versions.kt | 63 ++++++++ core/build.gradle | 26 ---- core/build.gradle.kts | 26 ++++ .../ru/deadsoftware/cavedroid/MainConfig.java | 0 .../cavedroid/game/GameComponent.java | 0 .../cavedroid/game/GameModule.java | 0 .../cavedroid/game/GamePhysics.java | 0 .../deadsoftware/cavedroid/game/GameProc.java | 0 .../cavedroid/game/GameRenderer.java | 0 .../cavedroid/game/GameScope.java | 0 .../cavedroid/game/GameScreen.java | 0 .../cavedroid/game/GameUiWindow.java | 0 .../deadsoftware/cavedroid/game/mobs/Mob.java | 0 .../cavedroid/game/mobs/player/Player.java | 0 .../cavedroid/game/objects/TouchButton.java | 0 .../game/objects/drop/DropController.java | 0 .../cavedroid/game/world/GameWorld.java | 0 .../cavedroid/menu/MenuComponent.java | 0 .../deadsoftware/cavedroid/menu/MenuProc.java | 0 .../cavedroid/menu/MenuScope.java | 0 .../cavedroid/menu/MenuScreen.java | 0 .../cavedroid/menu/objects/Button.java | 0 .../menu/objects/ButtonEventListener.java | 0 .../menu/objects/ButtonRenderer.java | 0 .../cavedroid/menu/submenus/Menu.java | 0 .../cavedroid/menu/submenus/MenuMain.java | 0 .../cavedroid/menu/submenus/MenuNewGame.java | 0 .../deadsoftware/cavedroid/misc/Assets.java | 0 .../deadsoftware/cavedroid/misc/Renderer.java | 0 .../ru/deadsoftware/cavedroid/CaveGame.kt | 0 .../deadsoftware/cavedroid/MainComponent.kt | 0 .../cavedroid/game/GameItemsHolder.kt | 0 .../game/actions/CommonBlockActionUtils.kt | 0 .../actions/placeblock/IPlaceBlockAction.kt | 0 .../PlaceBlockItemToBackgroundAction.kt | 0 .../PlaceBlockItemToForegroundAction.kt | 0 .../actions/placeblock/PlaceSlabAction.kt | 0 .../actions/updateblock/IUpdateBlockAction.kt | 0 .../updateblock/UpdateBedLeftAction.kt | 0 .../updateblock/UpdateBedRightAction.kt | 0 .../actions/updateblock/UpdateGrassAction.kt | 0 .../updateblock/UpdateRequiresBlockAction.kt | 0 .../updateblock/UpdateSnowedGrassAction.kt | 0 .../game/actions/useblock/IUseBlockAction.kt | 0 .../game/actions/useblock/UseChestAction.kt | 0 .../useblock/UseCraftingTableAction.kt | 0 .../game/actions/useblock/UseFurnaceAction.kt | 0 .../game/actions/useitem/IUseItemAction.kt | 0 .../game/actions/useitem/UseBedAction.kt | 0 .../actions/useitem/UseEmptyBucketAction.kt | 0 .../actions/useitem/UseLavaBucketAction.kt | 0 .../actions/useitem/UsePigSpawnEggAction.kt | 0 .../actions/useitem/UseWaterBucketAction.kt | 0 .../game/debug/DebugInfoStringsProvider.kt | 0 .../cavedroid/game/input/IGameInputHandler.kt | 0 .../cavedroid/game/input/InputUtils.kt | 0 .../cavedroid/game/input/Joystick.kt | 0 .../game/input/action/IGameInputAction.kt | 0 .../game/input/action/KeyboardInputAction.kt | 0 .../game/input/action/MouseInputAction.kt | 0 .../action/keys/KeyboardInputActionKey.kt | 0 .../input/action/keys/MouseInputActionKey.kt | 0 .../CloseGameWindowKeyboardInputHandler.kt | 0 .../keyboard/DropItemKeyboardInputHandler.kt | 0 .../keyboard/FlyDownKeyboardInputHandler.kt | 0 .../keyboard/FlyUpKeyboardInputHandler.kt | 0 .../keyboard/GoLeftKeyboardInputHandler.kt | 0 .../keyboard/GoRightKeyboardInputHandler.kt | 0 .../keyboard/JumpKeyboardInputHandler.kt | 0 ...eCursorControlsModeKeyboardInputHandler.kt | 0 .../OpenInventoryKeyboardInputHandler.kt | 0 .../keyboard/PauseGameKeyboardInputHandler.kt | 0 .../SelectHotbarSlotKeyboardInputHandler.kt | 0 .../keyboard/StopSwimKeyboardInputHandler.kt | 0 .../keyboard/SwimUpKeyboardInputHandler.kt | 0 .../ToggleControlsModeKeyboardInputHandler.kt | 0 .../ToggleDebugInfoKeyboardInputHandler.kt | 0 .../ToggleGameModeKeyboardInputHandler.kt | 0 .../ToggleMinimapKeyboardInputHandler.kt | 0 .../TurnOnFlyModeKeyboardInputHandler.kt | 0 ...AbstractInventoryItemsMouseInputHandler.kt | 0 .../handler/mouse/AttackMouseInputHandler.kt | 0 .../mouse/CloseGameWindowMouseInputHandler.kt | 0 ...reativeInventoryScrollMouseInputHandler.kt | 0 .../handler/mouse/CursorMouseInputHandler.kt | 0 .../handler/mouse/HotbarMouseInputHandler.kt | 0 ...lectChestInventoryItemMouseInputHandler.kt | 0 ...tCraftingInventoryItemMouseInputHandler.kt | 0 ...tCreativeInventoryItemMouseInputHandler.kt | 0 ...ctFurnaceInventoryItemMouseInputHandler.kt | 0 ...tSurvivalInventoryItemMouseInputHandler.kt | 0 .../handler/mouse/UseItemMouseInputHandler.kt | 0 .../handler/touch/JoystickInputHandler.kt | 0 .../input/mapper/KeyboardInputActionMapper.kt | 0 .../input/mapper/MouseInputActionMapper.kt | 0 .../cavedroid/game/mobs/FallingBlock.kt | 0 .../cavedroid/game/mobs/MobSaveDataMapper.kt | 0 .../cavedroid/game/mobs/MobsController.kt | 0 .../cavedroid/game/mobs/PeacefulMob.kt | 0 .../deadsoftware/cavedroid/game/mobs/Pig.kt | 0 .../cavedroid/game/mobs/player/Inventory.kt | 0 .../cavedroid/game/model/block/Block.kt | 0 .../game/model/block/BlockAnimationInfo.kt | 0 .../game/model/block/BlockDropInfo.kt | 0 .../game/model/block/BlockMargins.kt | 0 .../game/model/block/CommonBlockParams.kt | 0 .../game/model/craft/CraftingRecipe.kt | 0 .../cavedroid/game/model/dto/BlockDto.kt | 0 .../cavedroid/game/model/dto/CraftingDto.kt | 0 .../cavedroid/game/model/dto/GameItemsDto.kt | 0 .../cavedroid/game/model/dto/ItemDto.kt | 0 .../cavedroid/game/model/dto/SaveDataDto.kt | 0 .../game/model/item/CommonItemParams.kt | 0 .../game/model/item/InventoryItem.kt | 0 .../cavedroid/game/model/item/Item.kt | 0 .../game/model/mapper/BlockMapper.kt | 0 .../cavedroid/game/model/mapper/ItemMapper.kt | 0 .../cavedroid/game/model/world/Biome.kt | 0 .../world/generator/WorldGeneratorConfig.kt | 0 .../cavedroid/game/objects/container/Chest.kt | 0 .../game/objects/container/Container.kt | 0 .../objects/container/ContainerController.kt | 0 .../game/objects/container/Furnace.kt | 0 .../cavedroid/game/objects/drop/Drop.kt | 0 .../game/render/BackgroundBlocksRenderer.kt | 0 .../cavedroid/game/render/BlocksRenderer.kt | 0 .../cavedroid/game/render/DebugRenderer.kt | 0 .../cavedroid/game/render/DropsRenderer.kt | 0 .../game/render/ForegroundBlocksRenderer.kt | 0 .../cavedroid/game/render/HudRenderer.kt | 0 .../cavedroid/game/render/IGameRenderer.kt | 0 .../cavedroid/game/render/MobsRenderer.kt | 0 .../game/render/TouchControlsRenderer.kt | 0 .../cavedroid/game/render/WindowsRenderer.kt | 0 .../render/windows/AbstractWindowRenderer.kt | 0 .../render/windows/ChestWindowRenderer.kt | 0 .../render/windows/CraftingWindowRenderer.kt | 0 .../render/windows/CreativeWindowRenderer.kt | 0 .../render/windows/FurnaceWindowRenderer.kt | 0 .../render/windows/SurvivalWindowRenderer.kt | 0 .../cavedroid/game/save/GameSaveData.kt | 0 .../cavedroid/game/save/GameSaveLoader.kt | 0 .../cavedroid/game/ui/TooltipManager.kt | 0 .../game/ui/windows/GameWindowsConfigs.kt | 0 .../game/ui/windows/GameWindowsManager.kt | 0 .../inventory/AbstractInventoryWindow.kt | 0 .../AbstractInventoryWindowWithCraftGrid.kt | 0 .../windows/inventory/ChestInventoryWindow.kt | 0 .../inventory/CraftingInventoryWindow.kt | 0 .../inventory/CreativeInventoryWindow.kt | 0 .../inventory/FurnaceInventoryWindow.kt | 0 .../inventory/SurvivalInventoryWindow.kt | 0 .../GameWorldBlocksLogicControllerTask.kt | 0 .../GameWorldFluidsLogicControllerTask.kt | 0 .../game/world/GameWorldGenerator.kt | 0 .../world/GameWorldMobDamageControllerTask.kt | 0 .../menu/objects/BooleanOptionButton.kt | 0 .../cavedroid/menu/submenus/MenuOptions.kt | 0 .../cavedroid/menu/submenus/MenusFactory.kt | 0 .../deadsoftware/cavedroid/misc/Saveable.kt | 0 .../multibind}/BindKeyboardInputHandler.kt | 0 .../multibind}/BindMouseInputHandler.kt | 0 .../multibind}/BindPlaceBlockAction.kt | 0 .../annotations/multibind}/BindRenderer.kt | 0 .../multibind}/BindUpdateBlockAction.kt | 0 .../multibind}/BindUseBlockAction.kt | 0 .../multibind}/BindUseItemAction.kt | 0 .../multibind}/MultibindingConfig.kt | 0 .../misc/utils/ArrayMapExtensions.kt | 0 .../cavedroid/misc/utils/AssetLoader.kt | 0 .../cavedroid/misc/utils/GdxExtensions.kt | 0 .../cavedroid/misc/utils/ItemUtils.kt | 0 .../cavedroid/misc/utils/MeasureUnitsUtils.kt | 0 .../cavedroid/misc/utils/RenderingUtils.kt | 0 .../cavedroid/misc/utils/SpriteOrigin.kt | 0 .../cavedroid/misc/utils/SpriteUtils.kt | 0 .../cavedroid/misc/utils/mobs/MobSprites.kt | 0 .../cavedroid/prefs/PreferencesStore.kt | 0 desktop/assets | 1 - desktop/build.gradle | 50 ------ desktop/build.gradle.kts | 41 +++++ .../cavedroid/desktop/DesktopLauncher.kt | 54 +++++++ .../desktop/DesktopPreferencesStore.kt | 0 desktop/src/main/resources | 1 + .../cavedroid/desktop/DesktopLauncher.java | 47 ------ settings.gradle | 2 - settings.gradle.kts | 3 + 218 files changed, 417 insertions(+), 327 deletions(-) delete mode 120000 android/assets delete mode 100644 android/build.gradle create mode 100644 android/build.gradle.kts delete mode 100644 android/project.properties rename android/{ => src}/debug/res/drawable-hdpi/ic_launcher.png (100%) rename android/{ => src}/debug/res/drawable-mdpi/ic_launcher.png (100%) rename android/{ => src}/debug/res/drawable-xhdpi/ic_launcher.png (100%) rename android/{ => src}/debug/res/drawable-xxhdpi/ic_launcher.png (100%) rename android/{ => src}/debug/res/drawable-xxxhdpi/ic_launcher.png (100%) rename android/{ => src}/debug/res/drawable/ic_launcher_foreground.xml (100%) rename android/{ => src}/debug/res/values/strings.xml (100%) rename android/{ => src/main}/AndroidManifest.xml (100%) create mode 120000 android/src/main/assets rename android/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/AndroidLauncher.kt (100%) rename android/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/AndroidPreferencesStore.kt (100%) rename android/{ => src/main}/res/drawable-anydpi-v26/ic_launcher.xml (100%) rename android/{ => src/main}/res/drawable-hdpi/ic_launcher.png (100%) rename android/{ => src/main}/res/drawable-mdpi/ic_launcher.png (100%) rename android/{ => src/main}/res/drawable-xhdpi/ic_launcher.png (100%) rename android/{ => src/main}/res/drawable-xxhdpi/ic_launcher.png (100%) rename android/{ => src/main}/res/drawable-xxxhdpi/ic_launcher.png (100%) rename android/{ => src/main}/res/drawable/ic_launcher_background.xml (100%) rename android/{ => src/main}/res/drawable/ic_launcher_foreground.xml (100%) rename android/{ => src/main}/res/values/strings.xml (100%) rename android/{ => src/main}/res/values/styles.xml (100%) rename android/{ => src/main}/res/xml/backup_descriptor.xml (100%) delete mode 100644 build.gradle create mode 100644 build.gradle.kts create mode 100644 buildSrc/build.gradle.kts create mode 100644 buildSrc/src/main/kotlin/ApplicationInfo.kt create mode 100644 buildSrc/src/main/kotlin/Dependencies.kt create mode 100644 buildSrc/src/main/kotlin/Versions.kt delete mode 100644 core/build.gradle create mode 100644 core/build.gradle.kts rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/MainConfig.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/game/GameComponent.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/game/GameModule.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/game/GamePhysics.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/game/GameProc.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/game/GameRenderer.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/game/GameScope.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/game/GameScreen.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/game/GameUiWindow.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/game/mobs/Mob.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/game/mobs/player/Player.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/game/objects/TouchButton.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/game/objects/drop/DropController.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/game/world/GameWorld.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/menu/MenuComponent.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/menu/MenuProc.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/menu/MenuScope.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/menu/MenuScreen.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/menu/objects/Button.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/menu/objects/ButtonEventListener.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/menu/objects/ButtonRenderer.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/menu/submenus/Menu.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/menu/submenus/MenuMain.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/menu/submenus/MenuNewGame.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/misc/Assets.java (100%) rename core/src/{ => main/java}/ru/deadsoftware/cavedroid/misc/Renderer.java (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/CaveGame.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/MainComponent.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/GameItemsHolder.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/CommonBlockActionUtils.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/placeblock/IPlaceBlockAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceBlockItemToBackgroundAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceBlockItemToForegroundAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceSlabAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/updateblock/IUpdateBlockAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateBedLeftAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateBedRightAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateGrassAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateRequiresBlockAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateSnowedGrassAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/useblock/IUseBlockAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/useblock/UseChestAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/useblock/UseCraftingTableAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/useblock/UseFurnaceAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/useitem/IUseItemAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/useitem/UseBedAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/useitem/UseEmptyBucketAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/useitem/UseLavaBucketAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/useitem/UsePigSpawnEggAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/actions/useitem/UseWaterBucketAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/debug/DebugInfoStringsProvider.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/IGameInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/InputUtils.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/Joystick.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/action/IGameInputAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/action/KeyboardInputAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/action/MouseInputAction.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/action/keys/KeyboardInputActionKey.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/action/keys/MouseInputActionKey.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/CloseGameWindowKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/DropItemKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/FlyDownKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/FlyUpKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/GoLeftKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/GoRightKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/JumpKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/MoveCursorControlsModeKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/OpenInventoryKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/PauseGameKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/SelectHotbarSlotKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/StopSwimKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/SwimUpKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleControlsModeKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleDebugInfoKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleGameModeKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleMinimapKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/keyboard/TurnOnFlyModeKeyboardInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/mouse/AbstractInventoryItemsMouseInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/mouse/AttackMouseInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/mouse/CloseGameWindowMouseInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/mouse/CreativeInventoryScrollMouseInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/mouse/CursorMouseInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/mouse/HotbarMouseInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectChestInventoryItemMouseInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectCraftingInventoryItemMouseInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectCreativeInventoryItemMouseInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectFurnaceInventoryItemMouseInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectSurvivalInventoryItemMouseInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/mouse/UseItemMouseInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/handler/touch/JoystickInputHandler.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/mapper/KeyboardInputActionMapper.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/input/mapper/MouseInputActionMapper.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/mobs/FallingBlock.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/mobs/MobSaveDataMapper.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/mobs/MobsController.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/mobs/PeacefulMob.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/mobs/Pig.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/mobs/player/Inventory.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/block/Block.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/block/BlockAnimationInfo.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/block/BlockDropInfo.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/block/BlockMargins.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/block/CommonBlockParams.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/craft/CraftingRecipe.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/dto/BlockDto.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/dto/CraftingDto.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/dto/GameItemsDto.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/dto/ItemDto.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/dto/SaveDataDto.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/item/CommonItemParams.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/item/InventoryItem.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/item/Item.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/mapper/BlockMapper.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/mapper/ItemMapper.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/world/Biome.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/model/world/generator/WorldGeneratorConfig.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/objects/container/Chest.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/objects/container/Container.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/objects/container/ContainerController.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/objects/container/Furnace.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/objects/drop/Drop.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/render/BackgroundBlocksRenderer.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/render/BlocksRenderer.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/render/DebugRenderer.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/render/DropsRenderer.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/render/ForegroundBlocksRenderer.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/render/HudRenderer.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/render/IGameRenderer.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/render/MobsRenderer.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/render/TouchControlsRenderer.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/render/WindowsRenderer.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/render/windows/AbstractWindowRenderer.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/render/windows/ChestWindowRenderer.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/render/windows/CraftingWindowRenderer.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/render/windows/CreativeWindowRenderer.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/render/windows/FurnaceWindowRenderer.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/render/windows/SurvivalWindowRenderer.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/save/GameSaveData.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/save/GameSaveLoader.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/ui/TooltipManager.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/ui/windows/GameWindowsConfigs.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/ui/windows/GameWindowsManager.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/ui/windows/inventory/AbstractInventoryWindow.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/ui/windows/inventory/AbstractInventoryWindowWithCraftGrid.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/ui/windows/inventory/ChestInventoryWindow.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/ui/windows/inventory/CraftingInventoryWindow.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/ui/windows/inventory/CreativeInventoryWindow.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/ui/windows/inventory/FurnaceInventoryWindow.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/ui/windows/inventory/SurvivalInventoryWindow.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/world/GameWorldBlocksLogicControllerTask.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/world/GameWorldFluidsLogicControllerTask.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/world/GameWorldGenerator.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/game/world/GameWorldMobDamageControllerTask.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/menu/objects/BooleanOptionButton.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/menu/submenus/MenuOptions.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/menu/submenus/MenusFactory.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/misc/Saveable.kt (100%) rename core/src/{ru/deadsoftware/cavedroid/misc/annotations/multibinding => main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind}/BindKeyboardInputHandler.kt (100%) rename core/src/{ru/deadsoftware/cavedroid/misc/annotations/multibinding => main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind}/BindMouseInputHandler.kt (100%) rename core/src/{ru/deadsoftware/cavedroid/misc/annotations/multibinding => main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind}/BindPlaceBlockAction.kt (100%) rename core/src/{ru/deadsoftware/cavedroid/misc/annotations/multibinding => main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind}/BindRenderer.kt (100%) rename core/src/{ru/deadsoftware/cavedroid/misc/annotations/multibinding => main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind}/BindUpdateBlockAction.kt (100%) rename core/src/{ru/deadsoftware/cavedroid/misc/annotations/multibinding => main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind}/BindUseBlockAction.kt (100%) rename core/src/{ru/deadsoftware/cavedroid/misc/annotations/multibinding => main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind}/BindUseItemAction.kt (100%) rename core/src/{ru/deadsoftware/cavedroid/misc/annotations/multibinding => main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind}/MultibindingConfig.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/misc/utils/ArrayMapExtensions.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/misc/utils/AssetLoader.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/misc/utils/GdxExtensions.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/misc/utils/ItemUtils.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/misc/utils/MeasureUnitsUtils.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/misc/utils/RenderingUtils.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/misc/utils/SpriteOrigin.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/misc/utils/SpriteUtils.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/misc/utils/mobs/MobSprites.kt (100%) rename core/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/prefs/PreferencesStore.kt (100%) delete mode 120000 desktop/assets delete mode 100644 desktop/build.gradle create mode 100644 desktop/build.gradle.kts create mode 100644 desktop/src/main/kotlin/ru/deadsoftware/cavedroid/desktop/DesktopLauncher.kt rename desktop/src/{ => main/kotlin}/ru/deadsoftware/cavedroid/desktop/DesktopPreferencesStore.kt (100%) create mode 120000 desktop/src/main/resources delete mode 100644 desktop/src/ru/deadsoftware/cavedroid/desktop/DesktopLauncher.java delete mode 100644 settings.gradle create mode 100644 settings.gradle.kts diff --git a/android/assets b/android/assets deleted file mode 120000 index ec2e4be..0000000 --- a/android/assets +++ /dev/null @@ -1 +0,0 @@ -../assets \ No newline at end of file diff --git a/android/build.gradle b/android/build.gradle deleted file mode 100644 index d52b9e9..0000000 --- a/android/build.gradle +++ /dev/null @@ -1,147 +0,0 @@ -buildscript { - configurations { natives } -} - -plugins { - id "com.android.application" - id "kotlin-android" -} - -def keystorePropertiesFile = rootProject.file("keystore.properties") -def keystoreProperties = new Properties() -keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) - -android { - namespace "ru.deadsoftware.cavedroid" - compileSdkVersion 34 - sourceSets { - main { - manifest.srcFile 'AndroidManifest.xml' - java.srcDirs = ['src'] - aidl.srcDirs = ['src'] - renderscript.srcDirs = ['src'] - res.srcDirs = ['res'] - assets.srcDirs = ['assets'] - jniLibs.srcDirs = ['libs'] - } - debug { - res.srcDirs = ['debug/res'] - } - } - compileOptions { - sourceCompatibility 17 - targetCompatibility 17 - } - packagingOptions { - exclude 'META-INF/robovm/ios/robovm.xml' - } - defaultConfig { - applicationId "ru.deadsoftware.cavedroid" - minSdkVersion 19 - targetSdkVersion 34 - versionCode 25 - versionName "alpha0.9.2" - - multiDexEnabled true - } - applicationVariants.all { variant -> - variant.outputs.all { - outputFileName = "android-${versionName}.apk" - } - } - - signingConfigs { - release_config { - storeFile file(keystoreProperties['releaseKeystorePath']) - storePassword keystoreProperties['releaseKeystorePassword'] - keyAlias keystoreProperties['releaseKeyAlias'] - keyPassword keystoreProperties['releaseKeyPassword'] - } - } - - buildTypes { - release { - minifyEnabled false - signingConfig signingConfigs.release_config - } - debug { - applicationIdSuffix ".debug" - } - } - buildFeatures { - buildConfig true - } - -} - - -// called every time gradle gets executed, takes the native dependencies of -// the natives configuration, and extracts them to the proper libs/ folders -// so they get packed with the APK. -task copyAndroidNatives { - doFirst { - file("libs/armeabi/").mkdirs() - file("libs/armeabi-v7a/").mkdirs() - file("libs/arm64-v8a/").mkdirs() - file("libs/x86_64/").mkdirs() - file("libs/x86/").mkdirs() - - configurations.natives.files.each { jar -> - def outputDir = null - if (jar.name.endsWith("natives-arm64-v8a.jar")) outputDir = file("libs/arm64-v8a") - if (jar.name.endsWith("natives-armeabi-v7a.jar")) outputDir = file("libs/armeabi-v7a") - if(jar.name.endsWith("natives-armeabi.jar")) outputDir = file("libs/armeabi") - if(jar.name.endsWith("natives-x86_64.jar")) outputDir = file("libs/x86_64") - if(jar.name.endsWith("natives-x86.jar")) outputDir = file("libs/x86") - if(outputDir != null) { - copy { - from zipTree(jar) - into outputDir - include "*.so" - } - } - } - } -} - -tasks.whenTaskAdded { packageTask -> - if (packageTask.name.contains("package")) { - packageTask.dependsOn 'copyAndroidNatives' - } -} - -task run(type: Exec) { - def path - def localProperties = project.file("../local.properties") - if (localProperties.exists()) { - Properties properties = new Properties() - localProperties.withInputStream { instr -> - properties.load(instr) - } - def sdkDir = properties.getProperty('sdk.dir') - if (sdkDir) { - path = sdkDir - } else { - path = "$System.env.ANDROID_HOME" - } - } else { - path = "$System.env.ANDROID_HOME" - } - - def adb = path + "/platform-tools/adb" - commandLine "$adb", 'shell', 'am', 'start', '-n', 'ru.deadsoftware.cavedroid/ru.deadsoftware.cavedroid.AndroidLauncher' -} - -dependencies { - implementation project(":core") - implementation platform("org.jetbrains.kotlin:kotlin-bom:$kotlinVersion") - api "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion" - natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a" - natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a" - natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86" - natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64" - - configurations.implementation { - exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8' - } -} \ No newline at end of file diff --git a/android/build.gradle.kts b/android/build.gradle.kts new file mode 100644 index 0000000..40e158e --- /dev/null +++ b/android/build.gradle.kts @@ -0,0 +1,131 @@ +import java.io.FileInputStream +import java.util.Properties + +private val natives by configurations.creating + +plugins { + id("com.android.application") + id("kotlin-android") +} + +private val keystorePropertiesFile = rootProject.file("keystore.properties") +private val keystoreProperties = if (keystorePropertiesFile.exists()) { + Properties().apply { + load(FileInputStream(keystorePropertiesFile)) + } +} else { + null +} + + +android { + namespace = ApplicationInfo.packageName + compileSdk = 34 + + sourceSets { + + named("main") { + jniLibs.srcDir("libs") + } + + named("debug") { + res.srcDir("src/debug/res") + } + + } + + compileOptions { + sourceCompatibility = ApplicationInfo.sourceCompatibility + targetCompatibility = ApplicationInfo.sourceCompatibility + } + + defaultConfig { + applicationId = ApplicationInfo.packageName + minSdk = 19 + targetSdk = 34 + + versionCode = ApplicationInfo.versionCode + versionName = ApplicationInfo.versionName + + multiDexEnabled = true + } + + applicationVariants.asSequence() + .flatMap { variant -> variant.outputs.asSequence() } + .mapNotNull { output -> output as? com.android.build.gradle.internal.api.BaseVariantOutputImpl } + .forEach { output -> output.outputFileName = "android-${ApplicationInfo.versionName}.apk" } + + val releaseConfig = signingConfigs.create("release_config") + with(releaseConfig) { + storeFile = keystoreProperties?.get("releaseKeystorePath")?.let(::file) + storePassword = keystoreProperties?.get("releaseKeystorePassword")?.toString() + keyAlias = keystoreProperties?.get("releaseKeyAlias")?.toString() + keyPassword = keystoreProperties?.get("releaseKeyPassword")?.toString() + } + + buildTypes { + release { + isMinifyEnabled = false + signingConfig = releaseConfig + } + + debug { + applicationIdSuffix = ".debug" + } + } + + buildFeatures { + buildConfig = true + } +} + +// called every time gradle gets executed, takes the native dependencies of +// the natives configuration, and extracts them to the proper libs/ folders +// so they get packed with the APK. +task("copyAndroidNatives") { + doFirst { + val armeabiV7Dir = file("libs/armeabi-v7a/").apply { mkdirs() } + val arm64Dir = file("libs/arm64-v8a/").apply { mkdirs() } + val x86Dir = file("libs/x86/").apply { mkdirs() } + val amd64Dir = file("libs/x86_64/").apply { mkdirs() } + + natives.files.forEach { jar -> + val outputDir = when { + jar.name.endsWith("natives-armeabi-v7a.jar") -> armeabiV7Dir + jar.name.endsWith("natives-arm64-v8a.jar") -> arm64Dir + jar.name.endsWith("natives-x86.jar") -> x86Dir + jar.name.endsWith("natives-x86_64.jar") -> amd64Dir + else -> null + } + + if (outputDir != null) { + copy { + from(zipTree(jar)) + into(outputDir) + include("*.so") + } + } + } + } +} + +tasks.whenTaskAdded { + if (name.contains("package")) { + dependsOn("copyAndroidNatives") + } +} + +dependencies { + implementation((project(":core"))) + implementation(platform(Dependencies.Kotlin.bom)) + + implementation(Dependencies.LibGDX.gdx) + implementation(Dependencies.LibGDX.Android.backend) + + natives(Dependencies.LibGDX.Android.Natives.armeabi) + natives(Dependencies.LibGDX.Android.Natives.arm64) + natives(Dependencies.LibGDX.Android.Natives.x86) + natives(Dependencies.LibGDX.Android.Natives.x86_64) + + configurations["implementation"].exclude(group = "org.jetbrains.kotlin", module = "kotlin-stdlib-jdk8") +} \ No newline at end of file diff --git a/android/project.properties b/android/project.properties deleted file mode 100644 index 3fefa92..0000000 --- a/android/project.properties +++ /dev/null @@ -1,9 +0,0 @@ -# This file is used by the Eclipse ADT plugin. It is unnecessary for IDEA and Android Studio projects, which -# configure Proguard and the Android target via the build.gradle file. - -# To enable ProGuard to work with Eclipse ADT, uncomment this (available properties: sdk.dir, user.home) -# and ensure proguard.jar in the Android SDK is up to date (or alternately reduce the android target to 23 or lower): -# proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-rules.pro - -# Project target. -target=android-19 diff --git a/android/debug/res/drawable-hdpi/ic_launcher.png b/android/src/debug/res/drawable-hdpi/ic_launcher.png similarity index 100% rename from android/debug/res/drawable-hdpi/ic_launcher.png rename to android/src/debug/res/drawable-hdpi/ic_launcher.png diff --git a/android/debug/res/drawable-mdpi/ic_launcher.png b/android/src/debug/res/drawable-mdpi/ic_launcher.png similarity index 100% rename from android/debug/res/drawable-mdpi/ic_launcher.png rename to android/src/debug/res/drawable-mdpi/ic_launcher.png diff --git a/android/debug/res/drawable-xhdpi/ic_launcher.png b/android/src/debug/res/drawable-xhdpi/ic_launcher.png similarity index 100% rename from android/debug/res/drawable-xhdpi/ic_launcher.png rename to android/src/debug/res/drawable-xhdpi/ic_launcher.png diff --git a/android/debug/res/drawable-xxhdpi/ic_launcher.png b/android/src/debug/res/drawable-xxhdpi/ic_launcher.png similarity index 100% rename from android/debug/res/drawable-xxhdpi/ic_launcher.png rename to android/src/debug/res/drawable-xxhdpi/ic_launcher.png diff --git a/android/debug/res/drawable-xxxhdpi/ic_launcher.png b/android/src/debug/res/drawable-xxxhdpi/ic_launcher.png similarity index 100% rename from android/debug/res/drawable-xxxhdpi/ic_launcher.png rename to android/src/debug/res/drawable-xxxhdpi/ic_launcher.png diff --git a/android/debug/res/drawable/ic_launcher_foreground.xml b/android/src/debug/res/drawable/ic_launcher_foreground.xml similarity index 100% rename from android/debug/res/drawable/ic_launcher_foreground.xml rename to android/src/debug/res/drawable/ic_launcher_foreground.xml diff --git a/android/debug/res/values/strings.xml b/android/src/debug/res/values/strings.xml similarity index 100% rename from android/debug/res/values/strings.xml rename to android/src/debug/res/values/strings.xml diff --git a/android/AndroidManifest.xml b/android/src/main/AndroidManifest.xml similarity index 100% rename from android/AndroidManifest.xml rename to android/src/main/AndroidManifest.xml diff --git a/android/src/main/assets b/android/src/main/assets new file mode 120000 index 0000000..2978ef3 --- /dev/null +++ b/android/src/main/assets @@ -0,0 +1 @@ +../../../assets \ No newline at end of file diff --git a/android/src/ru/deadsoftware/cavedroid/AndroidLauncher.kt b/android/src/main/kotlin/ru/deadsoftware/cavedroid/AndroidLauncher.kt similarity index 100% rename from android/src/ru/deadsoftware/cavedroid/AndroidLauncher.kt rename to android/src/main/kotlin/ru/deadsoftware/cavedroid/AndroidLauncher.kt diff --git a/android/src/ru/deadsoftware/cavedroid/AndroidPreferencesStore.kt b/android/src/main/kotlin/ru/deadsoftware/cavedroid/AndroidPreferencesStore.kt similarity index 100% rename from android/src/ru/deadsoftware/cavedroid/AndroidPreferencesStore.kt rename to android/src/main/kotlin/ru/deadsoftware/cavedroid/AndroidPreferencesStore.kt diff --git a/android/res/drawable-anydpi-v26/ic_launcher.xml b/android/src/main/res/drawable-anydpi-v26/ic_launcher.xml similarity index 100% rename from android/res/drawable-anydpi-v26/ic_launcher.xml rename to android/src/main/res/drawable-anydpi-v26/ic_launcher.xml diff --git a/android/res/drawable-hdpi/ic_launcher.png b/android/src/main/res/drawable-hdpi/ic_launcher.png similarity index 100% rename from android/res/drawable-hdpi/ic_launcher.png rename to android/src/main/res/drawable-hdpi/ic_launcher.png diff --git a/android/res/drawable-mdpi/ic_launcher.png b/android/src/main/res/drawable-mdpi/ic_launcher.png similarity index 100% rename from android/res/drawable-mdpi/ic_launcher.png rename to android/src/main/res/drawable-mdpi/ic_launcher.png diff --git a/android/res/drawable-xhdpi/ic_launcher.png b/android/src/main/res/drawable-xhdpi/ic_launcher.png similarity index 100% rename from android/res/drawable-xhdpi/ic_launcher.png rename to android/src/main/res/drawable-xhdpi/ic_launcher.png diff --git a/android/res/drawable-xxhdpi/ic_launcher.png b/android/src/main/res/drawable-xxhdpi/ic_launcher.png similarity index 100% rename from android/res/drawable-xxhdpi/ic_launcher.png rename to android/src/main/res/drawable-xxhdpi/ic_launcher.png diff --git a/android/res/drawable-xxxhdpi/ic_launcher.png b/android/src/main/res/drawable-xxxhdpi/ic_launcher.png similarity index 100% rename from android/res/drawable-xxxhdpi/ic_launcher.png rename to android/src/main/res/drawable-xxxhdpi/ic_launcher.png diff --git a/android/res/drawable/ic_launcher_background.xml b/android/src/main/res/drawable/ic_launcher_background.xml similarity index 100% rename from android/res/drawable/ic_launcher_background.xml rename to android/src/main/res/drawable/ic_launcher_background.xml diff --git a/android/res/drawable/ic_launcher_foreground.xml b/android/src/main/res/drawable/ic_launcher_foreground.xml similarity index 100% rename from android/res/drawable/ic_launcher_foreground.xml rename to android/src/main/res/drawable/ic_launcher_foreground.xml diff --git a/android/res/values/strings.xml b/android/src/main/res/values/strings.xml similarity index 100% rename from android/res/values/strings.xml rename to android/src/main/res/values/strings.xml diff --git a/android/res/values/styles.xml b/android/src/main/res/values/styles.xml similarity index 100% rename from android/res/values/styles.xml rename to android/src/main/res/values/styles.xml diff --git a/android/res/xml/backup_descriptor.xml b/android/src/main/res/xml/backup_descriptor.xml similarity index 100% rename from android/res/xml/backup_descriptor.xml rename to android/src/main/res/xml/backup_descriptor.xml diff --git a/build.gradle b/build.gradle deleted file mode 100644 index 60a1bb3..0000000 --- a/build.gradle +++ /dev/null @@ -1,44 +0,0 @@ -buildscript { - ext { - appName = "CaveDroid" - - gdxVersion = '1.12.0' - - guavaVersion = '28.1' - - daggerVersion = '2.51.1' - - kotlinVersion = '1.9.24' - kspVersion = '1.9.24-1.0.20' - kotlinSerializationVersion = '1.6.3' - - kotlinpoetKspVersion = '1.16.0' - } - - repositories { - mavenLocal() - mavenCentral() - maven { url "https://plugins.gradle.org/m2/" } - maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } - google() - } - - dependencies { - classpath 'com.android.tools.build:gradle:8.2.2' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" - } -} - -allprojects { - version = 'alpha0.9.2' - - repositories { - mavenLocal() - mavenCentral() - google() - maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } - maven { url "https://oss.sonatype.org/content/repositories/releases/" } - maven { url "https://jitpack.io" } - maven { url "https://mvn.fredboy.ru/releases/" } - } -} diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..203acec --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,30 @@ +buildscript { + repositories { + mavenLocal() + mavenCentral() + google() + maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") } + maven { url = uri("https://oss.sonatype.org/content/repositories/releases/") } + maven { url = uri("https://jitpack.io") } + maven { url = uri("https://mvn.fredboy.ru/releases/") } + } + + dependencies { + classpath(Dependencies.androidGradlePlugin) + classpath(Dependencies.Kotlin.gradlePlugin) + } +} + +allprojects { + version = ApplicationInfo.versionName + + repositories { + mavenLocal() + mavenCentral() + google() + maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") } + maven { url = uri("https://oss.sonatype.org/content/repositories/releases/") } + maven { url = uri("https://jitpack.io") } + maven { url = uri("https://mvn.fredboy.ru/releases/") } + } +} \ No newline at end of file diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts new file mode 100644 index 0000000..876c922 --- /dev/null +++ b/buildSrc/build.gradle.kts @@ -0,0 +1,7 @@ +plugins { + `kotlin-dsl` +} + +repositories { + mavenCentral() +} diff --git a/buildSrc/src/main/kotlin/ApplicationInfo.kt b/buildSrc/src/main/kotlin/ApplicationInfo.kt new file mode 100644 index 0000000..05676c4 --- /dev/null +++ b/buildSrc/src/main/kotlin/ApplicationInfo.kt @@ -0,0 +1,11 @@ +import org.gradle.api.JavaVersion + +object ApplicationInfo { + const val name = "CaveDroid" + const val versionName = "alpha0.9.2" + const val versionCode = 25 + + const val packageName = "ru.deadsoftware.cavedroid" + + val sourceCompatibility = JavaVersion.VERSION_17 +} \ No newline at end of file diff --git a/buildSrc/src/main/kotlin/Dependencies.kt b/buildSrc/src/main/kotlin/Dependencies.kt new file mode 100644 index 0000000..bfe2c54 --- /dev/null +++ b/buildSrc/src/main/kotlin/Dependencies.kt @@ -0,0 +1,49 @@ +object Dependencies { + + object LibGDX { + const val gdx = "com.badlogicgames.gdx:gdx:${Versions.gdx}" + + object Android { + const val backend = "com.badlogicgames.gdx:gdx-backend-android:${Versions.gdx}" + + object Natives { + const val armeabi = "com.badlogicgames.gdx:gdx-platform:${Versions.gdx}:natives-armeabi-v7a" + const val arm64 = "com.badlogicgames.gdx:gdx-platform:${Versions.gdx}:natives-arm64-v8a" + const val x86 = "com.badlogicgames.gdx:gdx-platform:${Versions.gdx}:natives-x86" + const val x86_64 = "com.badlogicgames.gdx:gdx-platform:${Versions.gdx}:natives-x86_64" + } + } + + object Desktop { + const val backend = "com.badlogicgames.gdx:gdx-backend-lwjgl3:${Versions.gdx}" + const val natives = "com.badlogicgames.gdx:gdx-platform:${Versions.gdx}:natives-desktop" + } + } + + object Dagger { + const val dagger = "com.google.dagger:dagger:${Versions.dagger}" + const val compiler = "com.google.dagger:dagger-compiler:${Versions.dagger}" + } + + object Kotlin { + const val gradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}" + const val bom = "org.jetbrains.kotlin:kotlin-bom:${Versions.kotlin}" + const val stdlib = "org.jetbrains.kotlin:kotlin-stdlib:${Versions.kotlin}" + + object Serialization { + const val json = "org.jetbrains.kotlinx:kotlinx-serialization-json:${Versions.kotlinxSerialization}" + const val protobuf = "org.jetbrains.kotlinx:kotlinx-serialization-protobuf:${Versions.kotlinxSerialization}" + } + } + + object Automultibind { + const val annotations = "ru.fredboy:automultibind-annotations:${Versions.automultibind}" + const val ksp = "ru.fredboy:automultibind-ksp:${Versions.automultibind}" + } + + const val androidGradlePlugin = "com.android.tools.build:gradle:${Versions.agp}" + + // TODO: Remove after complete kotlin migration + const val jetbrainsAnnotations = "org.jetbrains:annotations:${Versions.jetbrainsAnnotations}" + +} \ No newline at end of file diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt new file mode 100644 index 0000000..69bfd29 --- /dev/null +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -0,0 +1,63 @@ +object Versions { + + /** + * Android gradle plugin version + */ + const val agp = "8.2.2" + + /** + * LibGDX version + * + * [Source](https://github.com/libgdx/libgdx) + */ + const val gdx = "1.12.0" + + /** + * Dagger version + * + * [Source](https://github.com/google/dagger) + */ + const val dagger = "2.51.1" + + /** + * Kotlin version + * + * [Source](https://github.com/JetBrains/kotlin) + */ + const val kotlin = "1.9.24" + + /** + * Kotlinx serialization version + * + * [Source](https://github.com/Kotlin/kotlinx.serialization/) + */ + const val kotlinxSerialization = "1.6.3" + + /** + * Kotlin Symbol Processing version + * + * [Source](https://github.com/google/ksp) + */ + const val ksp = "1.9.24-1.0.20" + + /** + * Kotlin poet version + * + * [Source](https://github.com/square/kotlinpoet) + */ + const val kotlinPoetKsp = "1.16.0" + + /** + * JetBrains annotations version + * + * [Source](https://github.com/JetBrains/java-annotations) + */ + const val jetbrainsAnnotations = "23.1.0" + + /** + * Automultibind version + * + * [Source](https://github.com/fredboy/automultibind) + */ + const val automultibind = "1.0.0" +} \ No newline at end of file diff --git a/core/build.gradle b/core/build.gradle deleted file mode 100644 index bd932c3..0000000 --- a/core/build.gradle +++ /dev/null @@ -1,26 +0,0 @@ -plugins { - id "java-library" - id "org.jetbrains.kotlin.jvm" - id "kotlin" - id "idea" - id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlinVersion" - id 'com.google.devtools.ksp' version "$kspVersion" -} - -java.targetCompatibility = JavaVersion.VERSION_17 -java.sourceCompatibility = JavaVersion.VERSION_17 - -sourceSets.main.java.srcDirs = ["src/"] - -dependencies { - implementation "ru.fredboy:automultibind-annotations:1.0.0" - ksp "ru.fredboy:automultibind-ksp:1.0.0" - - api "com.badlogicgames.gdx:gdx:$gdxVersion" - api "com.google.dagger:dagger:$daggerVersion" - implementation 'org.jetbrains:annotations:23.1.0' - implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion" - implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinSerializationVersion" - implementation "org.jetbrains.kotlinx:kotlinx-serialization-protobuf:$kotlinSerializationVersion" - ksp "com.google.dagger:dagger-compiler:$daggerVersion" -} diff --git a/core/build.gradle.kts b/core/build.gradle.kts new file mode 100644 index 0000000..276f49d --- /dev/null +++ b/core/build.gradle.kts @@ -0,0 +1,26 @@ +plugins { + id("java-library") + id("org.jetbrains.kotlin.jvm") + id("kotlin") + id("idea") + id("org.jetbrains.kotlin.plugin.serialization") version Versions.kotlin + id ("com.google.devtools.ksp") version Versions.ksp +} + +java.sourceCompatibility = ApplicationInfo.sourceCompatibility +java.targetCompatibility = ApplicationInfo.sourceCompatibility + +dependencies { + implementation(Dependencies.Automultibind.annotations) + ksp(Dependencies.Automultibind.ksp) + + implementation(Dependencies.LibGDX.gdx) + implementation(Dependencies.Dagger.dagger) + + implementation(Dependencies.jetbrainsAnnotations) + implementation(Dependencies.Kotlin.stdlib) + implementation(Dependencies.Kotlin.Serialization.json) + implementation(Dependencies.Kotlin.Serialization.protobuf) + + ksp(Dependencies.Dagger.compiler) +} \ No newline at end of file diff --git a/core/src/ru/deadsoftware/cavedroid/MainConfig.java b/core/src/main/java/ru/deadsoftware/cavedroid/MainConfig.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/MainConfig.java rename to core/src/main/java/ru/deadsoftware/cavedroid/MainConfig.java diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameComponent.java b/core/src/main/java/ru/deadsoftware/cavedroid/game/GameComponent.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/GameComponent.java rename to core/src/main/java/ru/deadsoftware/cavedroid/game/GameComponent.java diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameModule.java b/core/src/main/java/ru/deadsoftware/cavedroid/game/GameModule.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/GameModule.java rename to core/src/main/java/ru/deadsoftware/cavedroid/game/GameModule.java diff --git a/core/src/ru/deadsoftware/cavedroid/game/GamePhysics.java b/core/src/main/java/ru/deadsoftware/cavedroid/game/GamePhysics.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/GamePhysics.java rename to core/src/main/java/ru/deadsoftware/cavedroid/game/GamePhysics.java diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameProc.java b/core/src/main/java/ru/deadsoftware/cavedroid/game/GameProc.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/GameProc.java rename to core/src/main/java/ru/deadsoftware/cavedroid/game/GameProc.java diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameRenderer.java b/core/src/main/java/ru/deadsoftware/cavedroid/game/GameRenderer.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/GameRenderer.java rename to core/src/main/java/ru/deadsoftware/cavedroid/game/GameRenderer.java diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameScope.java b/core/src/main/java/ru/deadsoftware/cavedroid/game/GameScope.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/GameScope.java rename to core/src/main/java/ru/deadsoftware/cavedroid/game/GameScope.java diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameScreen.java b/core/src/main/java/ru/deadsoftware/cavedroid/game/GameScreen.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/GameScreen.java rename to core/src/main/java/ru/deadsoftware/cavedroid/game/GameScreen.java diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameUiWindow.java b/core/src/main/java/ru/deadsoftware/cavedroid/game/GameUiWindow.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/GameUiWindow.java rename to core/src/main/java/ru/deadsoftware/cavedroid/game/GameUiWindow.java diff --git a/core/src/ru/deadsoftware/cavedroid/game/mobs/Mob.java b/core/src/main/java/ru/deadsoftware/cavedroid/game/mobs/Mob.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/mobs/Mob.java rename to core/src/main/java/ru/deadsoftware/cavedroid/game/mobs/Mob.java diff --git a/core/src/ru/deadsoftware/cavedroid/game/mobs/player/Player.java b/core/src/main/java/ru/deadsoftware/cavedroid/game/mobs/player/Player.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/mobs/player/Player.java rename to core/src/main/java/ru/deadsoftware/cavedroid/game/mobs/player/Player.java diff --git a/core/src/ru/deadsoftware/cavedroid/game/objects/TouchButton.java b/core/src/main/java/ru/deadsoftware/cavedroid/game/objects/TouchButton.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/objects/TouchButton.java rename to core/src/main/java/ru/deadsoftware/cavedroid/game/objects/TouchButton.java diff --git a/core/src/ru/deadsoftware/cavedroid/game/objects/drop/DropController.java b/core/src/main/java/ru/deadsoftware/cavedroid/game/objects/drop/DropController.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/objects/drop/DropController.java rename to core/src/main/java/ru/deadsoftware/cavedroid/game/objects/drop/DropController.java diff --git a/core/src/ru/deadsoftware/cavedroid/game/world/GameWorld.java b/core/src/main/java/ru/deadsoftware/cavedroid/game/world/GameWorld.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/world/GameWorld.java rename to core/src/main/java/ru/deadsoftware/cavedroid/game/world/GameWorld.java diff --git a/core/src/ru/deadsoftware/cavedroid/menu/MenuComponent.java b/core/src/main/java/ru/deadsoftware/cavedroid/menu/MenuComponent.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/menu/MenuComponent.java rename to core/src/main/java/ru/deadsoftware/cavedroid/menu/MenuComponent.java diff --git a/core/src/ru/deadsoftware/cavedroid/menu/MenuProc.java b/core/src/main/java/ru/deadsoftware/cavedroid/menu/MenuProc.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/menu/MenuProc.java rename to core/src/main/java/ru/deadsoftware/cavedroid/menu/MenuProc.java diff --git a/core/src/ru/deadsoftware/cavedroid/menu/MenuScope.java b/core/src/main/java/ru/deadsoftware/cavedroid/menu/MenuScope.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/menu/MenuScope.java rename to core/src/main/java/ru/deadsoftware/cavedroid/menu/MenuScope.java diff --git a/core/src/ru/deadsoftware/cavedroid/menu/MenuScreen.java b/core/src/main/java/ru/deadsoftware/cavedroid/menu/MenuScreen.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/menu/MenuScreen.java rename to core/src/main/java/ru/deadsoftware/cavedroid/menu/MenuScreen.java diff --git a/core/src/ru/deadsoftware/cavedroid/menu/objects/Button.java b/core/src/main/java/ru/deadsoftware/cavedroid/menu/objects/Button.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/menu/objects/Button.java rename to core/src/main/java/ru/deadsoftware/cavedroid/menu/objects/Button.java diff --git a/core/src/ru/deadsoftware/cavedroid/menu/objects/ButtonEventListener.java b/core/src/main/java/ru/deadsoftware/cavedroid/menu/objects/ButtonEventListener.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/menu/objects/ButtonEventListener.java rename to core/src/main/java/ru/deadsoftware/cavedroid/menu/objects/ButtonEventListener.java diff --git a/core/src/ru/deadsoftware/cavedroid/menu/objects/ButtonRenderer.java b/core/src/main/java/ru/deadsoftware/cavedroid/menu/objects/ButtonRenderer.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/menu/objects/ButtonRenderer.java rename to core/src/main/java/ru/deadsoftware/cavedroid/menu/objects/ButtonRenderer.java diff --git a/core/src/ru/deadsoftware/cavedroid/menu/submenus/Menu.java b/core/src/main/java/ru/deadsoftware/cavedroid/menu/submenus/Menu.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/menu/submenus/Menu.java rename to core/src/main/java/ru/deadsoftware/cavedroid/menu/submenus/Menu.java diff --git a/core/src/ru/deadsoftware/cavedroid/menu/submenus/MenuMain.java b/core/src/main/java/ru/deadsoftware/cavedroid/menu/submenus/MenuMain.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/menu/submenus/MenuMain.java rename to core/src/main/java/ru/deadsoftware/cavedroid/menu/submenus/MenuMain.java diff --git a/core/src/ru/deadsoftware/cavedroid/menu/submenus/MenuNewGame.java b/core/src/main/java/ru/deadsoftware/cavedroid/menu/submenus/MenuNewGame.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/menu/submenus/MenuNewGame.java rename to core/src/main/java/ru/deadsoftware/cavedroid/menu/submenus/MenuNewGame.java diff --git a/core/src/ru/deadsoftware/cavedroid/misc/Assets.java b/core/src/main/java/ru/deadsoftware/cavedroid/misc/Assets.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/Assets.java rename to core/src/main/java/ru/deadsoftware/cavedroid/misc/Assets.java diff --git a/core/src/ru/deadsoftware/cavedroid/misc/Renderer.java b/core/src/main/java/ru/deadsoftware/cavedroid/misc/Renderer.java similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/Renderer.java rename to core/src/main/java/ru/deadsoftware/cavedroid/misc/Renderer.java diff --git a/core/src/ru/deadsoftware/cavedroid/CaveGame.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/CaveGame.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/CaveGame.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/CaveGame.kt diff --git a/core/src/ru/deadsoftware/cavedroid/MainComponent.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/MainComponent.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/MainComponent.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/MainComponent.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameItemsHolder.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/GameItemsHolder.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/GameItemsHolder.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/GameItemsHolder.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/CommonBlockActionUtils.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/CommonBlockActionUtils.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/CommonBlockActionUtils.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/CommonBlockActionUtils.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/placeblock/IPlaceBlockAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/placeblock/IPlaceBlockAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/placeblock/IPlaceBlockAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/placeblock/IPlaceBlockAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceBlockItemToBackgroundAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceBlockItemToBackgroundAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceBlockItemToBackgroundAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceBlockItemToBackgroundAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceBlockItemToForegroundAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceBlockItemToForegroundAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceBlockItemToForegroundAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceBlockItemToForegroundAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceSlabAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceSlabAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceSlabAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceSlabAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/IUpdateBlockAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/IUpdateBlockAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/IUpdateBlockAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/IUpdateBlockAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateBedLeftAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateBedLeftAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateBedLeftAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateBedLeftAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateBedRightAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateBedRightAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateBedRightAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateBedRightAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateGrassAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateGrassAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateGrassAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateGrassAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateRequiresBlockAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateRequiresBlockAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateRequiresBlockAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateRequiresBlockAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateSnowedGrassAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateSnowedGrassAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateSnowedGrassAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateSnowedGrassAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/useblock/IUseBlockAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useblock/IUseBlockAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/useblock/IUseBlockAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useblock/IUseBlockAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/useblock/UseChestAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useblock/UseChestAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/useblock/UseChestAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useblock/UseChestAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/useblock/UseCraftingTableAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useblock/UseCraftingTableAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/useblock/UseCraftingTableAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useblock/UseCraftingTableAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/useblock/UseFurnaceAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useblock/UseFurnaceAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/useblock/UseFurnaceAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useblock/UseFurnaceAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/useitem/IUseItemAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/IUseItemAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/useitem/IUseItemAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/IUseItemAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/useitem/UseBedAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/UseBedAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/useitem/UseBedAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/UseBedAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/useitem/UseEmptyBucketAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/UseEmptyBucketAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/useitem/UseEmptyBucketAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/UseEmptyBucketAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/useitem/UseLavaBucketAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/UseLavaBucketAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/useitem/UseLavaBucketAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/UseLavaBucketAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/useitem/UsePigSpawnEggAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/UsePigSpawnEggAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/useitem/UsePigSpawnEggAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/UsePigSpawnEggAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/useitem/UseWaterBucketAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/UseWaterBucketAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/actions/useitem/UseWaterBucketAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/UseWaterBucketAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/debug/DebugInfoStringsProvider.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/debug/DebugInfoStringsProvider.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/debug/DebugInfoStringsProvider.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/debug/DebugInfoStringsProvider.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/IGameInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/IGameInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/IGameInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/IGameInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/InputUtils.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/InputUtils.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/InputUtils.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/InputUtils.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/Joystick.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/Joystick.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/Joystick.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/Joystick.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/action/IGameInputAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/action/IGameInputAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/action/IGameInputAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/action/IGameInputAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/action/KeyboardInputAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/action/KeyboardInputAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/action/KeyboardInputAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/action/KeyboardInputAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/action/MouseInputAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/action/MouseInputAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/action/MouseInputAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/action/MouseInputAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/action/keys/KeyboardInputActionKey.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/action/keys/KeyboardInputActionKey.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/action/keys/KeyboardInputActionKey.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/action/keys/KeyboardInputActionKey.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/action/keys/MouseInputActionKey.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/action/keys/MouseInputActionKey.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/action/keys/MouseInputActionKey.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/action/keys/MouseInputActionKey.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/CloseGameWindowKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/CloseGameWindowKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/CloseGameWindowKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/CloseGameWindowKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/DropItemKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/DropItemKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/DropItemKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/DropItemKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/FlyDownKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/FlyDownKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/FlyDownKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/FlyDownKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/FlyUpKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/FlyUpKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/FlyUpKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/FlyUpKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/GoLeftKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/GoLeftKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/GoLeftKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/GoLeftKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/GoRightKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/GoRightKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/GoRightKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/GoRightKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/JumpKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/JumpKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/JumpKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/JumpKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/MoveCursorControlsModeKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/MoveCursorControlsModeKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/MoveCursorControlsModeKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/MoveCursorControlsModeKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/OpenInventoryKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/OpenInventoryKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/OpenInventoryKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/OpenInventoryKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/PauseGameKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/PauseGameKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/PauseGameKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/PauseGameKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/SelectHotbarSlotKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/SelectHotbarSlotKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/SelectHotbarSlotKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/SelectHotbarSlotKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/StopSwimKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/StopSwimKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/StopSwimKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/StopSwimKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/SwimUpKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/SwimUpKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/SwimUpKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/SwimUpKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleControlsModeKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleControlsModeKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleControlsModeKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleControlsModeKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleDebugInfoKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleDebugInfoKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleDebugInfoKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleDebugInfoKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleGameModeKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleGameModeKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleGameModeKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleGameModeKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleMinimapKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleMinimapKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleMinimapKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleMinimapKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/TurnOnFlyModeKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/TurnOnFlyModeKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/TurnOnFlyModeKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/TurnOnFlyModeKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/AbstractInventoryItemsMouseInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/AbstractInventoryItemsMouseInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/AbstractInventoryItemsMouseInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/AbstractInventoryItemsMouseInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/AttackMouseInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/AttackMouseInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/AttackMouseInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/AttackMouseInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/CloseGameWindowMouseInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/CloseGameWindowMouseInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/CloseGameWindowMouseInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/CloseGameWindowMouseInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/CreativeInventoryScrollMouseInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/CreativeInventoryScrollMouseInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/CreativeInventoryScrollMouseInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/CreativeInventoryScrollMouseInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/CursorMouseInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/CursorMouseInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/CursorMouseInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/CursorMouseInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/HotbarMouseInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/HotbarMouseInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/HotbarMouseInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/HotbarMouseInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectChestInventoryItemMouseInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectChestInventoryItemMouseInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectChestInventoryItemMouseInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectChestInventoryItemMouseInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectCraftingInventoryItemMouseInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectCraftingInventoryItemMouseInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectCraftingInventoryItemMouseInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectCraftingInventoryItemMouseInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectCreativeInventoryItemMouseInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectCreativeInventoryItemMouseInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectCreativeInventoryItemMouseInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectCreativeInventoryItemMouseInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectFurnaceInventoryItemMouseInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectFurnaceInventoryItemMouseInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectFurnaceInventoryItemMouseInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectFurnaceInventoryItemMouseInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectSurvivalInventoryItemMouseInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectSurvivalInventoryItemMouseInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectSurvivalInventoryItemMouseInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectSurvivalInventoryItemMouseInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/UseItemMouseInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/UseItemMouseInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/UseItemMouseInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/UseItemMouseInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/touch/JoystickInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/touch/JoystickInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/handler/touch/JoystickInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/touch/JoystickInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/mapper/KeyboardInputActionMapper.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/mapper/KeyboardInputActionMapper.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/mapper/KeyboardInputActionMapper.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/mapper/KeyboardInputActionMapper.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/mapper/MouseInputActionMapper.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/mapper/MouseInputActionMapper.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/input/mapper/MouseInputActionMapper.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/mapper/MouseInputActionMapper.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/mobs/FallingBlock.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/FallingBlock.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/mobs/FallingBlock.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/FallingBlock.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/mobs/MobSaveDataMapper.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/MobSaveDataMapper.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/mobs/MobSaveDataMapper.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/MobSaveDataMapper.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/mobs/MobsController.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/MobsController.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/mobs/MobsController.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/MobsController.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/mobs/PeacefulMob.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/PeacefulMob.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/mobs/PeacefulMob.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/PeacefulMob.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/mobs/Pig.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/Pig.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/mobs/Pig.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/Pig.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/mobs/player/Inventory.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/player/Inventory.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/mobs/player/Inventory.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/player/Inventory.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/block/Block.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/block/Block.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/block/Block.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/block/Block.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/block/BlockAnimationInfo.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/block/BlockAnimationInfo.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/block/BlockAnimationInfo.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/block/BlockAnimationInfo.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/block/BlockDropInfo.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/block/BlockDropInfo.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/block/BlockDropInfo.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/block/BlockDropInfo.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/block/BlockMargins.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/block/BlockMargins.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/block/BlockMargins.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/block/BlockMargins.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/block/CommonBlockParams.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/block/CommonBlockParams.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/block/CommonBlockParams.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/block/CommonBlockParams.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/craft/CraftingRecipe.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/craft/CraftingRecipe.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/craft/CraftingRecipe.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/craft/CraftingRecipe.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/dto/BlockDto.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/dto/BlockDto.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/dto/BlockDto.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/dto/BlockDto.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/dto/CraftingDto.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/dto/CraftingDto.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/dto/CraftingDto.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/dto/CraftingDto.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/dto/GameItemsDto.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/dto/GameItemsDto.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/dto/GameItemsDto.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/dto/GameItemsDto.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/dto/ItemDto.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/dto/ItemDto.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/dto/ItemDto.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/dto/ItemDto.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/dto/SaveDataDto.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/dto/SaveDataDto.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/dto/SaveDataDto.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/dto/SaveDataDto.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/item/CommonItemParams.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/item/CommonItemParams.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/item/CommonItemParams.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/item/CommonItemParams.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/item/InventoryItem.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/item/InventoryItem.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/item/InventoryItem.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/item/InventoryItem.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/item/Item.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/item/Item.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/item/Item.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/item/Item.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/mapper/BlockMapper.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/mapper/BlockMapper.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/mapper/BlockMapper.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/mapper/BlockMapper.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/mapper/ItemMapper.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/mapper/ItemMapper.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/mapper/ItemMapper.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/mapper/ItemMapper.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/world/Biome.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/world/Biome.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/world/Biome.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/world/Biome.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/world/generator/WorldGeneratorConfig.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/world/generator/WorldGeneratorConfig.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/model/world/generator/WorldGeneratorConfig.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/world/generator/WorldGeneratorConfig.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/objects/container/Chest.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/objects/container/Chest.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/objects/container/Chest.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/objects/container/Chest.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/objects/container/Container.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/objects/container/Container.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/objects/container/Container.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/objects/container/Container.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/objects/container/ContainerController.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/objects/container/ContainerController.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/objects/container/ContainerController.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/objects/container/ContainerController.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/objects/container/Furnace.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/objects/container/Furnace.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/objects/container/Furnace.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/objects/container/Furnace.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/objects/drop/Drop.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/objects/drop/Drop.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/objects/drop/Drop.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/objects/drop/Drop.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/BackgroundBlocksRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/BackgroundBlocksRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/render/BackgroundBlocksRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/BackgroundBlocksRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/BlocksRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/BlocksRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/render/BlocksRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/BlocksRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/DebugRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/DebugRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/render/DebugRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/DebugRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/DropsRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/DropsRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/render/DropsRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/DropsRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/ForegroundBlocksRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/ForegroundBlocksRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/render/ForegroundBlocksRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/ForegroundBlocksRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/HudRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/HudRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/render/HudRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/HudRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/IGameRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/IGameRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/render/IGameRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/IGameRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/MobsRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/MobsRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/render/MobsRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/MobsRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/TouchControlsRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/TouchControlsRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/render/TouchControlsRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/TouchControlsRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/WindowsRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/WindowsRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/render/WindowsRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/WindowsRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/windows/AbstractWindowRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/AbstractWindowRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/render/windows/AbstractWindowRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/AbstractWindowRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/windows/ChestWindowRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/ChestWindowRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/render/windows/ChestWindowRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/ChestWindowRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/windows/CraftingWindowRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/CraftingWindowRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/render/windows/CraftingWindowRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/CraftingWindowRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/windows/CreativeWindowRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/CreativeWindowRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/render/windows/CreativeWindowRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/CreativeWindowRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/windows/FurnaceWindowRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/FurnaceWindowRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/render/windows/FurnaceWindowRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/FurnaceWindowRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/windows/SurvivalWindowRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/SurvivalWindowRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/render/windows/SurvivalWindowRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/SurvivalWindowRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/save/GameSaveData.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/save/GameSaveData.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/save/GameSaveData.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/save/GameSaveData.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/save/GameSaveLoader.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/save/GameSaveLoader.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/save/GameSaveLoader.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/save/GameSaveLoader.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/ui/TooltipManager.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/TooltipManager.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/ui/TooltipManager.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/TooltipManager.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/ui/windows/GameWindowsConfigs.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/GameWindowsConfigs.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/ui/windows/GameWindowsConfigs.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/GameWindowsConfigs.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/ui/windows/GameWindowsManager.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/GameWindowsManager.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/ui/windows/GameWindowsManager.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/GameWindowsManager.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/AbstractInventoryWindow.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/AbstractInventoryWindow.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/AbstractInventoryWindow.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/AbstractInventoryWindow.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/AbstractInventoryWindowWithCraftGrid.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/AbstractInventoryWindowWithCraftGrid.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/AbstractInventoryWindowWithCraftGrid.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/AbstractInventoryWindowWithCraftGrid.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/ChestInventoryWindow.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/ChestInventoryWindow.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/ChestInventoryWindow.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/ChestInventoryWindow.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/CraftingInventoryWindow.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/CraftingInventoryWindow.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/CraftingInventoryWindow.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/CraftingInventoryWindow.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/CreativeInventoryWindow.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/CreativeInventoryWindow.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/CreativeInventoryWindow.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/CreativeInventoryWindow.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/FurnaceInventoryWindow.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/FurnaceInventoryWindow.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/FurnaceInventoryWindow.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/FurnaceInventoryWindow.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/SurvivalInventoryWindow.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/SurvivalInventoryWindow.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/SurvivalInventoryWindow.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/SurvivalInventoryWindow.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/world/GameWorldBlocksLogicControllerTask.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/world/GameWorldBlocksLogicControllerTask.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/world/GameWorldBlocksLogicControllerTask.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/world/GameWorldBlocksLogicControllerTask.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/world/GameWorldFluidsLogicControllerTask.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/world/GameWorldFluidsLogicControllerTask.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/world/GameWorldFluidsLogicControllerTask.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/world/GameWorldFluidsLogicControllerTask.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/world/GameWorldGenerator.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/world/GameWorldGenerator.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/world/GameWorldGenerator.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/world/GameWorldGenerator.kt diff --git a/core/src/ru/deadsoftware/cavedroid/game/world/GameWorldMobDamageControllerTask.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/game/world/GameWorldMobDamageControllerTask.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/game/world/GameWorldMobDamageControllerTask.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/game/world/GameWorldMobDamageControllerTask.kt diff --git a/core/src/ru/deadsoftware/cavedroid/menu/objects/BooleanOptionButton.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/menu/objects/BooleanOptionButton.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/menu/objects/BooleanOptionButton.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/menu/objects/BooleanOptionButton.kt diff --git a/core/src/ru/deadsoftware/cavedroid/menu/submenus/MenuOptions.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/menu/submenus/MenuOptions.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/menu/submenus/MenuOptions.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/menu/submenus/MenuOptions.kt diff --git a/core/src/ru/deadsoftware/cavedroid/menu/submenus/MenusFactory.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/menu/submenus/MenusFactory.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/menu/submenus/MenusFactory.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/menu/submenus/MenusFactory.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/Saveable.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/Saveable.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/Saveable.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/Saveable.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindKeyboardInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindKeyboardInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindKeyboardInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindKeyboardInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindMouseInputHandler.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindMouseInputHandler.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindMouseInputHandler.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindMouseInputHandler.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindPlaceBlockAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindPlaceBlockAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindPlaceBlockAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindPlaceBlockAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindRenderer.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindRenderer.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindRenderer.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindRenderer.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindUpdateBlockAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindUpdateBlockAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindUpdateBlockAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindUpdateBlockAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindUseBlockAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindUseBlockAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindUseBlockAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindUseBlockAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindUseItemAction.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindUseItemAction.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindUseItemAction.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindUseItemAction.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/MultibindingConfig.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/MultibindingConfig.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/MultibindingConfig.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/MultibindingConfig.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/utils/ArrayMapExtensions.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/ArrayMapExtensions.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/utils/ArrayMapExtensions.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/ArrayMapExtensions.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/utils/AssetLoader.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/AssetLoader.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/utils/AssetLoader.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/AssetLoader.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/utils/GdxExtensions.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/GdxExtensions.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/utils/GdxExtensions.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/GdxExtensions.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/utils/ItemUtils.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/ItemUtils.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/utils/ItemUtils.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/ItemUtils.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/utils/MeasureUnitsUtils.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/MeasureUnitsUtils.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/utils/MeasureUnitsUtils.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/MeasureUnitsUtils.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/utils/RenderingUtils.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/RenderingUtils.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/utils/RenderingUtils.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/RenderingUtils.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/utils/SpriteOrigin.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/SpriteOrigin.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/utils/SpriteOrigin.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/SpriteOrigin.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/utils/SpriteUtils.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/SpriteUtils.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/utils/SpriteUtils.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/SpriteUtils.kt diff --git a/core/src/ru/deadsoftware/cavedroid/misc/utils/mobs/MobSprites.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/mobs/MobSprites.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/misc/utils/mobs/MobSprites.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/mobs/MobSprites.kt diff --git a/core/src/ru/deadsoftware/cavedroid/prefs/PreferencesStore.kt b/core/src/main/kotlin/ru/deadsoftware/cavedroid/prefs/PreferencesStore.kt similarity index 100% rename from core/src/ru/deadsoftware/cavedroid/prefs/PreferencesStore.kt rename to core/src/main/kotlin/ru/deadsoftware/cavedroid/prefs/PreferencesStore.kt diff --git a/desktop/assets b/desktop/assets deleted file mode 120000 index ec2e4be..0000000 --- a/desktop/assets +++ /dev/null @@ -1 +0,0 @@ -../assets \ No newline at end of file diff --git a/desktop/build.gradle b/desktop/build.gradle deleted file mode 100644 index f909ef1..0000000 --- a/desktop/build.gradle +++ /dev/null @@ -1,50 +0,0 @@ -plugins { - id 'java-library' - id 'kotlin' - id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlinVersion" -} - -java.targetCompatibility = JavaVersion.VERSION_17 -java.sourceCompatibility = JavaVersion.VERSION_1_8 - -sourceSets.main.java.srcDirs = ["src/"] -sourceSets.main.resources.srcDirs = ["assets/"] - -project.ext.mainClassName = "ru.deadsoftware.cavedroid.desktop.DesktopLauncher" -project.ext.assetsDir = new File("assets/") - -task run(dependsOn: build, type: JavaExec) { - main = project.mainClassName - classpath = sourceSets.main.runtimeClasspath - standardInput = System.in - workingDir = project.assetsDir - ignoreExitValue = true as JavaExecSpec - args "--debug" -} - -task runTouch(dependsOn: build, type: JavaExec) { - main = project.mainClassName - classpath = sourceSets.main.runtimeClasspath - standardInput = System.in - workingDir = project.assetsDir - ignoreExitValue = true as JavaExecSpec - args "--touch", "--debug" -} - -task dist(dependsOn: build, type: Jar) { - duplicatesStrategy = DuplicatesStrategy.EXCLUDE - manifest { - attributes 'Main-Class': project.mainClassName - } - from { - configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } - } - with jar -} - -dependencies { - implementation project(":core") - implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinSerializationVersion" - api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion" - api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop" -} diff --git a/desktop/build.gradle.kts b/desktop/build.gradle.kts new file mode 100644 index 0000000..5e2203e --- /dev/null +++ b/desktop/build.gradle.kts @@ -0,0 +1,41 @@ +plugins { + id("kotlin") +} + +java.sourceCompatibility = ApplicationInfo.sourceCompatibility +java.targetCompatibility = ApplicationInfo.sourceCompatibility + +private val desktopLauncherClassName = "ru.deadsoftware.cavedroid.desktop.DesktopLauncher" + +tasks.register("run") { + dependsOn("build") + mainClass = desktopLauncherClassName + classpath = sourceSets["main"].runtimeClasspath + workingDir = sourceSets["main"].resources.sourceDirectories.first() + args("--debug") +} + +tasks.register("runTouch") { + dependsOn("build") + mainClass = desktopLauncherClassName + classpath = sourceSets["main"].runtimeClasspath + workingDir = sourceSets["main"].resources.sourceDirectories.first() + args("--touch", "--debug") +} + +tasks.register("dist") { + dependsOn("build") + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + manifest { + attributes["Main-Class"] = desktopLauncherClassName + } + from(configurations.runtimeClasspath.get().resolve().map { it.takeIf(File::isDirectory) ?: zipTree(it) }) +} + +dependencies { + implementation(project(":core")) + + implementation(Dependencies.LibGDX.gdx) + implementation(Dependencies.LibGDX.Desktop.backend) + implementation(Dependencies.LibGDX.Desktop.natives) +} diff --git a/desktop/src/main/kotlin/ru/deadsoftware/cavedroid/desktop/DesktopLauncher.kt b/desktop/src/main/kotlin/ru/deadsoftware/cavedroid/desktop/DesktopLauncher.kt new file mode 100644 index 0000000..b4b3db4 --- /dev/null +++ b/desktop/src/main/kotlin/ru/deadsoftware/cavedroid/desktop/DesktopLauncher.kt @@ -0,0 +1,54 @@ +package ru.deadsoftware.cavedroid.desktop + +import com.badlogic.gdx.Files +import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application +import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration +import ru.deadsoftware.cavedroid.CaveGame + +internal object DesktopLauncher { + + @JvmStatic + fun main(arg: Array) { + val config = Lwjgl3ApplicationConfiguration() + + with(config) { + setWindowIcon( + /* fileType = */ Files.FileType.Internal, + /* ...filePaths = */ "icons/icon512.png", "icons/icon256.png", "icons/icon128.png" + ) + setTitle("CaveDroid") + setWindowedMode(960, 540) + useVsync(true) + } + + var touch = false + var debug = false + var assetsPath: String? = null + + for (anArg in arg) { + if (anArg == "--touch") { + touch = true + } + + if (anArg == "--debug") { + debug = true + } + + if (anArg.startsWith("--assets")) { + val splitArg: Array = anArg.split("=".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray() + if (splitArg.size >= 2) { + assetsPath = splitArg[1] + } + } + } + + val caveGame = CaveGame( + gameDataDirectoryPath = System.getProperty("user.home") + "/.cavedroid", + isTouchScreen = touch, + isDebug = debug, + preferencesStore = DesktopPreferencesStore(), + ) + + Lwjgl3Application(caveGame, config) + } +} \ No newline at end of file diff --git a/desktop/src/ru/deadsoftware/cavedroid/desktop/DesktopPreferencesStore.kt b/desktop/src/main/kotlin/ru/deadsoftware/cavedroid/desktop/DesktopPreferencesStore.kt similarity index 100% rename from desktop/src/ru/deadsoftware/cavedroid/desktop/DesktopPreferencesStore.kt rename to desktop/src/main/kotlin/ru/deadsoftware/cavedroid/desktop/DesktopPreferencesStore.kt diff --git a/desktop/src/main/resources b/desktop/src/main/resources new file mode 120000 index 0000000..2978ef3 --- /dev/null +++ b/desktop/src/main/resources @@ -0,0 +1 @@ +../../../assets \ No newline at end of file diff --git a/desktop/src/ru/deadsoftware/cavedroid/desktop/DesktopLauncher.java b/desktop/src/ru/deadsoftware/cavedroid/desktop/DesktopLauncher.java deleted file mode 100644 index 7137497..0000000 --- a/desktop/src/ru/deadsoftware/cavedroid/desktop/DesktopLauncher.java +++ /dev/null @@ -1,47 +0,0 @@ -package ru.deadsoftware.cavedroid.desktop; - -import com.badlogic.gdx.Files; -import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application; -import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration; -import ru.deadsoftware.cavedroid.CaveGame; - -class DesktopLauncher { - public static void main(String[] arg) { - Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration(); - config.setWindowIcon(Files.FileType.Internal, - "icons/icon512.png", "icons/icon256.png", "icons/icon128.png"); - config.setTitle("CaveDroid"); - config.setWindowedMode(960, 540); - config.useVsync(true); - - boolean touch = false; - boolean debug = false; - String assetsPath = null; - - for (String anArg : arg) { - if (anArg.equals("--touch")) { - touch = true; - } - - if (anArg.equals("--debug")) { - debug = true; - } - - if (anArg.startsWith("--assets")) { - String[] splitArg = anArg.split("="); - if (splitArg.length >= 2) { - assetsPath = splitArg[1]; - } - } - } - - CaveGame caveGame = new CaveGame( - System.getProperty("user.home") + "/.cavedroid", - touch, - debug, - new DesktopPreferencesStore() - ); - - new Lwjgl3Application(caveGame, config); - } -} diff --git a/settings.gradle b/settings.gradle deleted file mode 100644 index 99367df..0000000 --- a/settings.gradle +++ /dev/null @@ -1,2 +0,0 @@ -include 'desktop', 'android', 'core' - diff --git a/settings.gradle.kts b/settings.gradle.kts new file mode 100644 index 0000000..8b9f274 --- /dev/null +++ b/settings.gradle.kts @@ -0,0 +1,3 @@ +include("android") +include("desktop") +include("core") -- 2.29.2