AnimationResourceLibraryComponent

AnimationResourceLibraryComponent is a component designed to manage animation resources.

This component organizes resources in the form of a map, where each resource is associated with a unique, non-null, and valid name. Developers using this component should ensure that the resource names meet these criteria.

When interacting with this component, it is important to carefully check the return values of the provided interfaces to confirm whether the operations were successful.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun add(name: String, animationResource: AnimationResource): Boolean

Adds a new animation resource to the library with the specified name.

Link copied to clipboard
fun clear()

Clears all animation resources from the library.

Link copied to clipboard
open override fun clone(): Component

Creates and returns a copy of this Component instance.

Link copied to clipboard
fun contains(name: String): Boolean

Checks if an animation resource with the specified name exists in the library.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun get(name: String): AnimationResource?

Retrieves the animation resource associated with the specified name.

Link copied to clipboard

Retrieves a list of all animation resources currently stored in the library.

Link copied to clipboard
fun getAllNames(): List<String>

Retrieves a list of all resource names currently stored in the library.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun remove(name: String): Boolean

Removes the animation resource associated with the specified name from the library.

Link copied to clipboard
open override fun toString(): String