mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 20:44:05 +09:00
material and 5 temporary vectors no longer go into the savegame
This commit is contained in:
@@ -50,10 +50,7 @@ object AVKey {
|
||||
const val STRENGTH = "strength"
|
||||
const val STRENGTHBUFF = "$STRENGTH$BUFF"
|
||||
const val ENCUMBRANCE = "encumbrance"
|
||||
/** 30-bit RGB (Int)
|
||||
* 0000 0010000000 0010000000 0010000000
|
||||
* ^ Red ^ Green ^ Blue
|
||||
*/
|
||||
|
||||
const val LUMR = "luminosityred"
|
||||
const val LUMG = "luminositygreen"
|
||||
const val LUMB = "luminosityblue"
|
||||
@@ -142,4 +139,14 @@ object AVKey {
|
||||
|
||||
const val BAREHAND_MINHEIGHT = "barehandactionminheight"
|
||||
const val BAREHAND_BASE_DIGSIZE = "basebarehanddiggingsize"
|
||||
|
||||
|
||||
/** String
|
||||
* Comma-separated values of UUID for the world, Ascii85-encoded, big endian.
|
||||
*
|
||||
* Use extension function `UUID.toAscii85()` and `String.ascii85toUUID()` defined in the file for net.torvald.terrarum.serialise.Ascii85
|
||||
*
|
||||
* example value: `"SIxM+kGlrjZgLx5Zeqz7,;:UIZ5Q=2WT35SgKpOp.,vvf'fNW3G<ROimy(Y;E<,-mdtr5|^RGOqr0x*T*lC,YABr1oQwErKG)pGC'gUG"`
|
||||
*/
|
||||
const val WORLD_PORTAL_DICT = ""
|
||||
}
|
||||
@@ -3,6 +3,8 @@ package net.torvald.terrarum.gameactors
|
||||
import net.torvald.terrarum.KVHashMap
|
||||
|
||||
/**
|
||||
* For the dictionary of recognised ActorValues, see the source code of [net.torvald.terrarum.gameactors.AVKey]
|
||||
*
|
||||
* Created by minjaesong on 2017-04-28.
|
||||
*/
|
||||
class ActorValue : KVHashMap {
|
||||
|
||||
@@ -433,15 +433,15 @@ open class ActorWithBody : Actor {
|
||||
}
|
||||
|
||||
// get() methods are moved to update(), too much stray object being created is definitely not good
|
||||
val centrePosVector: Vector2 = Vector2(0.0,0.0)
|
||||
@Transient val centrePosVector: Vector2 = Vector2(0.0,0.0)
|
||||
//get() = Vector2(hitbox.centeredX, hitbox.centeredY)
|
||||
val centrePosPoint: Point2d = Point2d(0.0, 0.0)
|
||||
@Transient val centrePosPoint: Point2d = Point2d(0.0, 0.0)
|
||||
//get() = Point2d(hitbox.centeredX, hitbox.centeredY)
|
||||
val feetPosVector: Vector2 = Vector2(0.0,0.0)
|
||||
@Transient val feetPosVector: Vector2 = Vector2(0.0,0.0)
|
||||
//get() = Vector2(hitbox.centeredX, hitbox.endY)
|
||||
val feetPosPoint: Point2d = Point2d(0.0,0.0)
|
||||
@Transient val feetPosPoint: Point2d = Point2d(0.0,0.0)
|
||||
//get() = Point2d(hitbox.centeredX, hitbox.endY)
|
||||
val feetPosTile: Point2i = Point2i(0,0)
|
||||
@Transient val feetPosTile: Point2i = Point2i(0,0)
|
||||
//get() = Point2i(hIntTilewiseHitbox.centeredX.floorInt(), hIntTilewiseHitbox.endY.floorInt())
|
||||
|
||||
override fun run() = update(App.UPDATE_RATE)
|
||||
|
||||
Reference in New Issue
Block a user