mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 11:04:05 +09:00
WriteWorldInfo: actually working thumbnail export
This commit is contained in:
@@ -155,12 +155,7 @@ open class Ingame(batch: SpriteBatch) : IngameInstance(batch) {
|
||||
lateinit var gameLoadInfoPayload: Any
|
||||
lateinit var gameworld: GameWorldExtension
|
||||
lateinit var theRealGamer: IngamePlayer
|
||||
|
||||
override var actorGamer: ActorHumanoid?
|
||||
get() = theRealGamer
|
||||
set(value) {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
// get() = actorGamer as IngamePlayer
|
||||
|
||||
enum class GameLoadMode {
|
||||
CREATE_NEW, LOAD_FROM
|
||||
@@ -202,6 +197,10 @@ open class Ingame(batch: SpriteBatch) : IngameInstance(batch) {
|
||||
)
|
||||
|
||||
private fun setTheRealGamerFirstTime(actor: IngamePlayer) {
|
||||
if (actor.referenceID != Terrarum.PLAYER_REF_ID) {
|
||||
throw Error()
|
||||
}
|
||||
|
||||
actorNowPlaying = actor
|
||||
theRealGamer = actor
|
||||
addNewActor(actorNowPlaying)
|
||||
|
||||
Reference in New Issue
Block a user