AppearanceResource

Any resource which can be used to create an Appearance. At time of writing, this includes : Role, Graphic, Pose, NinePatch.

Inheritors

Properties

Link copied to clipboard
abstract val name: String
Link copied to clipboard
abstract val parent: ParentResource?
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun appearance(): Appearance

Pose and Graphic return themselves. NinePatch returns a NinePatchAppearance.

Link copied to clipboard
abstract 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
abstract fun dangerousRename(newName: String)
Link copied to clipboard
open fun find(path: String): Resource?
Link copied to clipboard
Link copied to clipboard
abstract fun findChild(name: String): Resource?
Link copied to clipboard
open fun findUnresolved(path: String): Resource?
Link copied to clipboard
abstract fun game(): Game
Link copied to clipboard
abstract fun path(): String