blessing-skin-server/resources/assets/tests/__mocks__/skinview3d.ts
Haowei Wen 1698f1162e fix ci
2023-02-10 21:28:31 +00:00

57 lines
1023 B
TypeScript

/* eslint-disable max-params */
/* eslint-disable max-classes-per-file */
import type {
PlayerObject,
SkinObject,
CapeObject,
EarsObject,
} from 'skinview3d'
export class SkinViewer {
disposed = false
background = null
animation = null
autoRotate = false
autoRotateSpeed = 1.0
playerObject: PlayerObject
constructor() {
this.playerObject = {
skin: {} as SkinObject,
cape: {} as CapeObject,
ears: {} as EarsObject,
backEquipment: 'cape',
} as PlayerObject
}
loadSkin() {}
resetSkin() {}
loadCape() {}
resetCape() {}
loadBackground() {}
setSize() {}
dispose() {
this.disposed = true
}
}
export class PlayerAnimation {
speed = 1.0
paused = false
progress = 0
}
export class IdleAnimation extends PlayerAnimation {}
export class WalkingAnimation extends PlayerAnimation {}
export class RunningAnimation extends PlayerAnimation {}
export class FlyingAnimation extends PlayerAnimation {}
export function isSlimSkin() {
return false
}