Metatell AI Bot - v0.0.10
    Preparing search index...

    Interface IAnimationService

    Service interface for managing VRM animations

    interface IAnimationService {
        clearCache(): void;
        getAvailableAnimations(avatarId: string): Promise<VRMAnimation[]>;
        getDefaultAnimations(): VRMAnimation[];
        loadAnimation(animationId: string): Promise<VRMAnimation>;
        setCurrentAvatarId(avatarId: string): void;
        validateAnimation(animationId: string): Promise<boolean>;
    }
    Index

    Methods

    • Clear animation cache

      Returns void

    • Get available animations for an avatar

      Parameters

      • avatarId: string

        The avatar ID

      Returns Promise<VRMAnimation[]>

      Promise resolving to array of available animations

    • Get default animations (presets)

      Returns VRMAnimation[]

      Array of preset animations

    • Load animation data from cache or API

      Parameters

      • animationId: string

        The animation ID

      Returns Promise<VRMAnimation>

      Promise resolving to animation data

    • Set current avatar ID for animation loading

      Parameters

      • avatarId: string

        The avatar ID

      Returns void

    • Validate if animation exists

      Parameters

      • animationId: string

        The animation ID

      Returns Promise<boolean>

      Promise resolving to boolean