/// <summary> /// Retourne une animation /// </summary> /// <param name="id">Id de l'animation</param> /// <param name="type">Type de l'animation</param> /// <returns></returns> public VO_AnimatedSprite GetAnimatedSprite(Guid id, Enums.StageObjectType type) { VO_AnimatedSprite anim = null; RunServiceTask(delegate { anim = _Business.GetAnimatedSprite(id, type); }, ViewerErrors.STAGE_LOAD_MENU, false, id.ToString(), type.ToString()); return(anim); }
/// <summary> /// Retourne une animation /// </summary> /// <param name="id">Id de l'animation</param> /// <param name="type">Type de l'animation</param> /// <returns></returns> public VO_AnimatedSprite GetAnimatedSprite(Guid id, Enums.StageObjectType type) { if (type == Enums.StageObjectType.Animations) { return(_Animations[id]); } else if (type == Enums.StageObjectType.Characters) { return(_Characters[id].Sprites); } return(null); }