something new
parent
6e16cefac6
commit
0707dd9077
@ -1,10 +1,12 @@
|
|||||||
import com.last.commit.inventory.Inventory
|
import com.last.commit.inventory.Inventory
|
||||||
import com.last.commit.config.GameSettings
|
import com.last.commit.config.GameSettings
|
||||||
import com.last.commit.audio.SoundEngine
|
import com.last.commit.audio.SoundEngine
|
||||||
|
import com.last.commit.config.TimeTravelAssetManager
|
||||||
|
|
||||||
data class GameState(
|
data class GameState(
|
||||||
val inventory: Inventory,
|
val inventory: Inventory,
|
||||||
val settings: GameSettings,
|
val settings: GameSettings,
|
||||||
val soundEngine: SoundEngine,
|
val soundEngine: SoundEngine,
|
||||||
var mapDescription: String = "2020"
|
val assetManager: TimeTravelAssetManager,
|
||||||
|
var mapDescription: String = "2020",
|
||||||
)
|
)
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.last.commit.config
|
||||||
|
|
||||||
|
import com.badlogic.gdx.assets.AssetManager
|
||||||
|
import com.badlogic.gdx.graphics.Texture
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.ui.Skin
|
||||||
|
|
||||||
|
class TimeTravelAssetManager : AssetManager() {
|
||||||
|
|
||||||
|
val UI_TEXTURE_PATH = "ui/uiskin.json"
|
||||||
|
|
||||||
|
init {
|
||||||
|
loadTextures()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun loadTextures() {
|
||||||
|
load(UI_TEXTURE_PATH, Skin::class.java)
|
||||||
|
}
|
||||||
|
|
||||||
|
fun getUiTexture() : Skin {
|
||||||
|
return get(UI_TEXTURE_PATH)
|
||||||
|
}
|
||||||
|
}
|
@ -1,9 +1,10 @@
|
|||||||
package com.last.commit.screen
|
package com.last.commit.screen
|
||||||
|
|
||||||
import com.badlogic.gdx.Screen
|
import com.badlogic.gdx.Screen
|
||||||
|
import com.last.commit.config.ActionCommand
|
||||||
|
|
||||||
abstract class TimeTravelScreen : Screen{
|
abstract class TimeTravelScreen : Screen{
|
||||||
|
|
||||||
abstract fun handleKeyInput(keyCode : Int)
|
abstract fun handleKeyInput(action : ActionCommand)
|
||||||
abstract fun handleMouseInput(screenX: Int, screenY: Int, pointer: Int, button: Int)
|
abstract fun handleMouseInput(screenX: Int, screenY: Int, pointer: Int, button: Int)
|
||||||
}
|
}
|
Loading…
Reference in New Issue