wire connectivity wip (need to take a look at the renderer)

This commit is contained in:
minjaesong
2022-07-08 00:27:00 +09:00
parent db0be9e088
commit adc151b169
9 changed files with 102 additions and 36 deletions

View File

@@ -50,17 +50,17 @@ open class HumanoidNPC : ActorHumanoid, AIControlled, CanBeAnItem {
override val isDynamic = false
override val material = Material()
override fun startPrimaryUse(actor: ActorWithBody, delta: Float): Boolean {
override fun startPrimaryUse(actor: ActorWithBody, delta: Float): Long {
try {
// place the actor to the world
this@HumanoidNPC.setPosition(Terrarum.mouseX, Terrarum.mouseY)
INGAME.queueActorAddition(this@HumanoidNPC)
// successful
return true
return 1
}
catch (e: Exception) {
e.printStackTrace()
return false
return -1
}
}
}