forked from noxious/server
#262 : Send frameRate to client
This commit is contained in:
@ -188,7 +188,8 @@ async function addHttpRoutes(app: Application) {
|
|||||||
isAnimated: spriteAction.isAnimated,
|
isAnimated: spriteAction.isAnimated,
|
||||||
frameCount: JSON.parse(JSON.stringify(spriteAction.sprites)).length,
|
frameCount: JSON.parse(JSON.stringify(spriteAction.sprites)).length,
|
||||||
frameWidth: spriteAction.frameWidth,
|
frameWidth: spriteAction.frameWidth,
|
||||||
frameHeight: spriteAction.frameHeight
|
frameHeight: spriteAction.frameHeight,
|
||||||
|
frameSpeed: spriteAction.frameSpeed
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ export type AssetData = {
|
|||||||
frameCount?: number
|
frameCount?: number
|
||||||
frameWidth?: number
|
frameWidth?: number
|
||||||
frameHeight?: number
|
frameHeight?: number
|
||||||
|
frameSpeed?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type WorldSettings = {
|
export type WorldSettings = {
|
||||||
|
Reference in New Issue
Block a user