mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 14:04:05 +09:00
basegame: added an Interface that marks the actor as 'not to be serialised when saving the world'
This commit is contained in:
@@ -13,7 +13,7 @@ import kotlin.math.floor
|
||||
/**
|
||||
* Used as construction markers and fixture ghost images
|
||||
*/
|
||||
class BlockMarkerActor : ActorWithBody(Actor.RenderOrder.OVERLAY, physProp = PhysProperties.MOBILE_OBJECT) {
|
||||
class BlockMarkerActor : ActorWithBody(Actor.RenderOrder.OVERLAY, physProp = PhysProperties.MOBILE_OBJECT), NoSerialise {
|
||||
|
||||
private val defaultSize = 16.0
|
||||
|
||||
|
||||
6
src/net/torvald/terrarum/gameactors/NoSerialise.kt
Normal file
6
src/net/torvald/terrarum/gameactors/NoSerialise.kt
Normal file
@@ -0,0 +1,6 @@
|
||||
package net.torvald.terrarum.gameactors
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 2022-09-02.
|
||||
*/
|
||||
interface NoSerialise
|
||||
@@ -11,7 +11,7 @@ import net.torvald.terrarum.gameitems.ItemID
|
||||
*
|
||||
* Created by minjaesong on 2021-07-30.
|
||||
*/
|
||||
class WireActor : ActorWithBody {
|
||||
class WireActor : ActorWithBody, NoSerialise {
|
||||
|
||||
companion object {
|
||||
val WIRE_NEARBY = arrayOf(
|
||||
|
||||
Reference in New Issue
Block a user