User Tools

Site Tools


api:comp_building_attach_node

COMP_BUILDING_ATTACH_NODE

Category: Component

Parent class: COMPONENT

Properties


AttachNodeTypeList

Serialized


AllowedAngles

Serialized

  • Type: vec2f
  • Expected: vec2f value

ForbidRotation

Serialized

  • Type: boolean
  • Expected: boolean value
  • Default value: false

ResetRotationWhenAttached

Serialized

  • Type: boolean
  • Expected: boolean value
  • Default value: true

Functions


setAttachNodeType

void setAttachNodeType(type)

Name Type Description
type ATTACH_NODE_TYPE

addAttachNodeType

void addAttachNodeType(type)

Name Type Description
type ATTACH_NODE_TYPE

isNodeType

boolean isNodeType(type)

Name Type Description
type ATTACH_NODE_TYPE

getLinkedBuildingAttachNode

COMP_BUILDING_ATTACH_NODE getLinkedBuildingAttachNode()


isAvailable

boolean isAvailable()


isCompatibleWithOtherNode

boolean isCompatibleWithOtherNode(otherNode)

Name Type Description
otherNode COMP_BUILDING_ATTACH_NODE

isAttached

boolean isAttached()

api/comp_building_attach_node.txt · Last modified: 2022/02/15 14:50 (external edit)