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
  • Default value: { -20, 20 }

MultipleOrientationCount

Serialized


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()


getParentPart

COMP_BUILDING_PART getParentPart()


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: 2024/02/06 13:53 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki