using System.Collections.Generic; namespace Fie.Object { public abstract class FieAnimationContainerBase { public enum BaseAnimTrack { MOTION, EMOTION, MAX_BASE_TRACK } public enum BaseAnimList { IDLE, MAX_BASE_ANIMATION } private Dictionary animationList = new Dictionary(); /// /// Gets the list of all animations registered to this container. /// public Dictionary getAnimationList() { return animationList; } /// /// Gets the skeleton animation for the provided animation id. /// Returns null of one such animation exists (????) /// public FieSkeletonAnimationObject getAnimation(int animationId) { // TODO: Shouldn't this be inverted? if (animationList.ContainsKey(animationId)) { return null; } return animationList[animationId]; } /// /// Registers animation details for the given id to this container. /// public void addAnimationData(int animationID, FieSkeletonAnimationObject animationObject) { animationList.Add(animationID, animationObject); } } }