UNPKG

tinyjs-plugin-mars

Version:
27 lines (26 loc) 976 B
import './loaders'; import * as $mars from '@alipay/mars-player'; import type { MarsContainer } from './MarsContainer'; export declare const Mars: typeof $mars; export { Player } from './Player'; export { project3DPoint } from './MarsContainer'; export { setAlipayDowngradeBizId } from '@alipay/mars-player'; export interface MarsContainerClickEvent { name: string; container: MarsContainer; id: string; hitPositions?: $mars.RI.vec3[]; } export interface MarsContainerMessage { name: string; phrase: number; container: MarsContainer; } export interface MarsContainerDelegate { shouldUpdate?: (container: MarsContainer, dt: number) => boolean; onItemClicked?: (item: MarsContainerClickEvent) => void; onRestart?: (container: MarsContainer) => void; onMessageItem?: (item: MarsContainerMessage, container: MarsContainer) => void; onDestroyed?: (container: MarsContainer) => void; onEnd?: (container: MarsContainer) => void; }