Modifier and Type | Field and Description |
---|---|
static String |
ANIMATION
Animation node name.
|
static String |
ANIMATION_END
Animation attribute end.
|
static String |
ANIMATION_NAME
Animation attribute name.
|
static String |
ANIMATION_REPEAT
Animation attribute repeat.
|
static String |
ANIMATION_REVERSED
Animation attribute reversed.
|
static String |
ANIMATION_SPEED
Animation attribute speed.
|
static String |
ANIMATION_START
Animation attribute start.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the animations data.
|
static AnimationConfig |
create(Configurer configurer)
Create the animation data from configurer.
|
static Animation |
createAnimation(XmlNode node)
Create animation data from node.
|
static void |
export(XmlNode root,
Animation animation)
Create an XML node from an animation.
|
Animation |
getAnimation(String name)
Get an animation data from its name.
|
Collection<Animation> |
getAnimations()
Get all animations.
|
public static final String ANIMATION
public static final String ANIMATION_NAME
public static final String ANIMATION_START
public static final String ANIMATION_END
public static final String ANIMATION_SPEED
public static final String ANIMATION_REVERSED
public static final String ANIMATION_REPEAT
public static AnimationConfig create(Configurer configurer)
configurer
- The configurer reference.LionEngineException
- If unable to read data.public static Animation createAnimation(XmlNode node)
node
- The animation node.LionEngineException
- If error when reading animation data.public static void export(XmlNode root, Animation animation)
root
- The node root.animation
- The animation reference.LionEngineException
- If error on writing.public void clear()
public Animation getAnimation(String name)
name
- The animation name.LionEngineException
- If the animation with the specified name is not found.public Collection<Animation> getAnimations()
Copyright © 2016 Byron 3D Games Studio. All rights reserved.