TiledCustomReflectableType

@objc
public protocol TiledCustomReflectableType

The TiledCustomReflectableType protocol outlines internal debugging elements that can be used to describe objects in debugging interfaces.

Properties

  • tiledElementName: Tiled element type.
  • tiledNodeType: SKTiled node type.
  • tiledNodeNiceName: proper node name.
  • tiledIconName: node icon representation.
  • tiledListDescription: description of the node used for list or outline views.
  • tiledMenuItemDescription: description of the node used in dropdown & popu menus.
  • tiledDisplayItemDescription: shortened debug description used for debug output text.
  • tiledHelpDescription: description of the node type used for help features.
  • tiledTooltipDescription: description suitable for a UI widget to display as a tooltip.
  • Returns the internal Tiled node type, for XML nodes, or our custom types.

    Declaration

    Swift

    @objc
    optional var tiledElementName: String { get }
  • Returns the internal node type, used for UI Inspector.

    Declaration

    Swift

    @objc
    optional var tiledNodeType: String { get }
  • Returns a “nice” node name for usage in UI elements.

    Declaration

    Swift

    @objc
    optional var tiledNodeNiceName: String { get }
  • Returns the internal Tiled node type icon.

    Declaration

    Swift

    @objc
    optional var tiledIconName: String { get }
  • A description of the node used in list or outline views.

    Declaration

    Swift

    @objc
    optional var tiledListDescription: String { get }
  • A description of the node used in dropdown & popu menus.

    Declaration

    Swift

    @objc
    optional var tiledMenuItemDescription: String { get }
  • A shortened debug description of the node used for debug output text, such as the demo HUD.

    (ie: <SKGroupLayer 'Upper': (7 children)>)

    Declaration

    Swift

    @objc
    optional var tiledDisplayItemDescription: String { get }
  • A description of the node type used for help features; (ie: "Container node for Tiled layer types.")

    Declaration

    Swift

    @objc
    optional var tiledHelpDescription: String { get }
  • Returns a string suitable for a UI widget to display as a tooltip. Ideally this represents a path for objects referenced in dropdown menus.

    Declaration

    Swift

    @objc
    optional var tiledTooltipDescription: String { get }
  • Dump the current object’s properties to the console.

    Declaration

    Swift

    @objc
    optional func dumpStatistics()