new load wip

This commit is contained in:
minjaesong
2021-10-11 17:46:46 +09:00
parent 198237dee2
commit ef603ec5d5
26 changed files with 250 additions and 285 deletions

View File

@@ -23,12 +23,10 @@ typealias BlockAddress = Long
class PhysicalStatus() {
// bottom-center point
var position = Point2d()
// some actorvalues
var scale = 1.0
// actorvalues are copied separately so don't worry about them here
constructor(player: IngamePlayer) : this() {
this.position = Point2d(player.hitbox.canonicalX, player.hitbox.canonicalY)
this.scale = player.avBaseScale
}
}
@@ -50,6 +48,12 @@ open class GameWorld() : Disposable {
var playersLastStatus = PlayersLastStatus() // only gets used when the game saves and loads
/**
* 0,1 - RoguelikeRandomiser
* 2,3 - WeatherMixer
*/
val randSeeds = LongArray(256) // stores 128 128-bit numbers
/** Creation time for this world, NOT the entire savegame */
internal var creationTime: Long = App.getTIME_T()
internal set