mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 11:04:05 +09:00
fix func name conflict
This commit is contained in:
@@ -152,7 +152,7 @@ class TitleScreen(batch: SpriteBatch) : IngameInstance(batch) {
|
|||||||
demoWorld.worldTime.timeDelta = 150
|
demoWorld.worldTime.timeDelta = 150
|
||||||
|
|
||||||
|
|
||||||
IngameRenderer.setWorld(demoWorld)
|
IngameRenderer.setRenderedWorld(demoWorld)
|
||||||
|
|
||||||
|
|
||||||
uiMenu = UIRemoCon(UITitleRemoConYaml())//UITitleRemoConRoot()
|
uiMenu = UIRemoCon(UITitleRemoConYaml())//UITitleRemoConRoot()
|
||||||
|
|||||||
@@ -307,7 +307,7 @@ class BuildingMaker(batch: SpriteBatch) : IngameInstance(batch) {
|
|||||||
uiPalette.setPosition(200, 100)
|
uiPalette.setPosition(200, 100)
|
||||||
|
|
||||||
|
|
||||||
IngameRenderer.setWorld(gameWorld)
|
IngameRenderer.setRenderedWorld(gameWorld)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun show() {
|
override fun show() {
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ object IngameRenderer : Disposable {
|
|||||||
* - When the main scene that renders the world is first created
|
* - When the main scene that renders the world is first created
|
||||||
* - When the game make transition to the new world (advancing to the next level/entering or exiting the room)
|
* - When the game make transition to the new world (advancing to the next level/entering or exiting the room)
|
||||||
*/
|
*/
|
||||||
fun setWorld(world: GameWorld) {
|
fun setRenderedWorld(world: GameWorld) {
|
||||||
try {
|
try {
|
||||||
if (this.world != world) {
|
if (this.world != world) {
|
||||||
printdbg(this, "World change detected -- " +
|
printdbg(this, "World change detected -- " +
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ open class TerrarumIngame(batch: SpriteBatch) : IngameInstance(batch) {
|
|||||||
GameLoadMode.LOAD_FROM -> enter(gameLoadInfoPayload as GameSaveData)
|
GameLoadMode.LOAD_FROM -> enter(gameLoadInfoPayload as GameSaveData)
|
||||||
}
|
}
|
||||||
|
|
||||||
IngameRenderer.setWorld(gameworld)
|
IngameRenderer.setRenderedWorld(gameworld)
|
||||||
|
|
||||||
|
|
||||||
super.show() // gameInitialised = true
|
super.show() // gameInitialised = true
|
||||||
|
|||||||
Reference in New Issue
Block a user