minor changes to the graphics control panel

This commit is contained in:
minjaesong
2023-05-27 23:31:21 +09:00
parent 43da6cc5d8
commit 34fb046968
6 changed files with 29 additions and 5 deletions

View File

@@ -16,7 +16,8 @@ import net.torvald.terrarum.itemproperties.Material
*/
open class HumanoidNPC : ActorHumanoid, AIControlled, CanBeAnItem {
override lateinit var ai: ActorAI
var aiName: String = ""
@Transient override lateinit var ai: ActorAI
companion object {
val DEFAULT_COLLISION_TYPE = COLLISION_DYNAMIC
@@ -26,6 +27,7 @@ open class HumanoidNPC : ActorHumanoid, AIControlled, CanBeAnItem {
constructor(ai: ActorAI, born: Long) : super(born) {
this.ai = ai
this.aiName = ai::class.java.canonicalName
}
init {

View File

@@ -13,7 +13,7 @@ import net.torvald.terrarum.gameactors.*
*/
class PhysTestLuarLander : ActorWithBody(RenderOrder.MIDTOP, PhysProperties.PHYSICS_OBJECT), Controllable {
private val texture = Texture(ModMgr.getGdxFile("basegame", "sprites/phystest_lunarlander.tga"))
@Transient private val texture = Texture(ModMgr.getGdxFile("basegame", "sprites/phystest_lunarlander.tga"))
override val hitbox: Hitbox