MCPcopy
hub / github.com/4ian/GDevelop / getAnimationNameAndResource

Function getAnimationNameAndResource

newIDE/app/src/AssetStore/AssetSwapper.spec.js:61–75  ·  view source on GitHub ↗
(
    objectConfiguration: gdSpriteObject,
    animationIndex: number
  )

Source from the content-addressed store, hash-verified

59 };
60
61 const getAnimationNameAndResource = (
62 objectConfiguration: gdSpriteObject,
63 animationIndex: number
64 ) => [
65 objectConfiguration
66 .getAnimations()
67 .getAnimation(animationIndex)
68 .getName(),
69 objectConfiguration
70 .getAnimations()
71 .getAnimation(animationIndex)
72 .getDirection(0)
73 .getSprite(0)
74 .getImageName(),
75 ];
76
77 test('can copy asset animations', () => {
78 const {

Callers 1

Calls 5

getAnimationMethod · 0.80
getAnimationsMethod · 0.80
getDirectionMethod · 0.80
getSourceMethod · 0.80
getNameMethod · 0.65

Tested by

no test coverage detected