simplify types
This commit is contained in:
parent
c483ae33ee
commit
fcd7e58688
|
|
@ -4,13 +4,7 @@ type AnimationFn = (player: PlayerObject, time: number) => void
|
||||||
interface IAnimation {
|
interface IAnimation {
|
||||||
play(player: PlayerObject, time: number): void
|
play(player: PlayerObject, time: number): void
|
||||||
}
|
}
|
||||||
export type Animation =
|
export type Animation = AnimationFn | IAnimation
|
||||||
| AnimationFn
|
|
||||||
| IAnimation
|
|
||||||
| {
|
|
||||||
play(player: PlayerObject, time: number): void
|
|
||||||
[x: string]: any
|
|
||||||
}
|
|
||||||
|
|
||||||
declare function invokeAnimation(
|
declare function invokeAnimation(
|
||||||
animation: Animation,
|
animation: Animation,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,11 @@
|
||||||
export { CompositeAnimation, WalkAnimation, Animation } from './animation'
|
export {
|
||||||
|
CompositeAnimation,
|
||||||
|
WalkAnimation,
|
||||||
|
Animation,
|
||||||
|
AnimationFn,
|
||||||
|
IAnimation
|
||||||
|
} from './animation'
|
||||||
|
|
||||||
export { SkinViewer, SkinControl } from './viewer'
|
export { SkinViewer, SkinControl } from './viewer'
|
||||||
|
|
||||||
export { SkinObject, CapeObject, PlayerObject } from './model'
|
export { SkinObject, CapeObject, PlayerObject } from './model'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue