NpcBody
class NpcBody( bodyType: Int = 0, parts: List<Int> = List(Appearance.PARTS) { Appearance.NONE }, colours: List<Int> = List(Appearance.COLOURS) { 0 }, worn: Map<EquipmentSlot, ItemDefinition> = emptyMap()) : Component()on_world_start { val guard = World.spawn(Assets.Npc.hans, Tile4.global(3222, 3218)) guard.replaceComponent(NpcBody(bodyType = 0, worn = mapOf(EquipmentSlot.MainHand to Assets.Item.shark)))}bodyType
Section titled “bodyType”var bodyType: Intvar parts: List<Int>colours
Section titled “colours”var colours: List<Int>var worn: Map<EquipmentSlot, ItemDefinition>refusalToJoin
Section titled “refusalToJoin”override fun refusalToJoin(entity: Entity): String?onComponentRemovedFromEntity
Section titled “onComponentRemovedFromEntity”override fun onComponentRemovedFromEntity()