Constructors

Link copied to clipboard
constructor(parent: ParentResource, name: String)

Properties

Link copied to clipboard

Arbitrary attributes, specific to your game.

Link copied to clipboard

The qualified class name of the behaviour.

Link copied to clipboard
open override val children: MutableObservableMap<String, Resource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The name of the stage this Role is usually placed on. When picking and placing, it will place it on the appropriate stage (if found).

Link copied to clipboard
Link copied to clipboard
override var name: String
Link copied to clipboard
override var parent: ParentResource
Link copied to clipboard
open override val resourceType: ResourceType

Functions

Link copied to clipboard
open override fun add(child: Resource)
Link copied to clipboard
open override fun appearance(): Appearance

Pose and Graphic return themselves. NinePatch returns a NinePatchAppearance.

Link copied to clipboard
open override fun appearanceForActor(actor: Actor): Appearance

Creates an Appearance with the same tint. Also, if the new appearances is StretchableAppearance then it will have the same bounds as the previous appearance.

Link copied to clipboard
open fun applyToActor(actor: Actor)

Set the actor's appearance.

Link copied to clipboard
Link copied to clipboard
open override fun dangerousRename(newName: String)
Link copied to clipboard
open fun find(path: String): Resource?
Link copied to clipboard
Link copied to clipboard
open override fun findChild(name: String): Resource?
Link copied to clipboard
open fun findUnresolved(path: String): Resource?
Link copied to clipboard
override fun game(): Game
Link copied to clipboard
override fun path(): String
Link copied to clipboard

Similar to path, but it also includes a trailing path. This is useful when building descendant paths as there is no special case needed for the root Game.

Link copied to clipboard
open override fun remove(child: Resource)
Link copied to clipboard
open override fun rename(child: Resource, newName: String)
Link copied to clipboard
open override fun resolveReferences(): String?
Link copied to clipboard
open override fun walkTree(onVisit: (Resource) -> Unit)