Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ClassPropertyType

A class that can be used for custom properties.

since

1.12

Hierarchy

Index

Constructors

constructor

Properties

AnyObjectClass

AnyObjectClass: number

AnyUsage

AnyUsage: number

LayerClass

LayerClass: number

MapClass

MapClass: number

MapObjectClass

MapObjectClass: number

ProjectClass

ProjectClass: number

PropertyValueType

PropertyValueType: number

TileClass

TileClass: number

TilesetClass

TilesetClass: number

WangColorClass

WangColorClass: number

WangSetClass

WangSetClass: number

color

color: color

Get or set the color used for objects of this class type.

defaultValue

defaultValue: PropertyValue

The default value for properties of this type.

drawFill

drawFill: boolean

Get or set whether objects of this class type will be rendered in the map with a fill color. If false, only an outline will be drawn for the object.

isClass

isClass: boolean

Returns true if this is a ClassPropertyType.

isEnum

isEnum: boolean

Returns true if this is a EnumPropertyType.

Readonly members

All members defined for this class type.

name

name: string

Get or set the name of this type. Must be unique in the project.

usageFlags

usageFlags: number

Get or set ClassUsageFlags used for this class type.

Methods

removeMember

  • removeMember(name: string): void
  • Remove a member of this class by name.

setMember

  • Set a class member, providing its name and default value. If another member of the same name exists, it will be replaced with the new value.

    If a PropertyType is provided, the value will be the defaultValue of that type.

Generated using TypeDoc