mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-26 00:45:20 +00:00
31 lines
1008 B
C#
31 lines
1008 B
C#
using System;
|
|
using MonoGame.Extended.Animations.SpriteSheets;
|
|
using MonoGame.Extended.Collections;
|
|
using MonoGame.Extended.Entities;
|
|
|
|
namespace Demo.Platformer.Entities.Components
|
|
{
|
|
//[EntityComponent]
|
|
//[EntityComponentPool(InitialSize = 100, IsFullPolicy = ObjectPoolIsFullPolicy.IncreaseSize)]
|
|
//public class AnimationComponent : EntityComponent
|
|
//{
|
|
// public string CurrentAnimationName { get; private set; }
|
|
|
|
// public override void Reset()
|
|
// {
|
|
// CurrentAnimationName = null;
|
|
// }
|
|
|
|
// public SpriteSheetAnimation Play(string name, Action onCompleted = null)
|
|
// {
|
|
// if (CurrentAnimationName != null && !CurrentAnimationName.IsComplete && CurrentAnimationName.Name == name)
|
|
// return CurrentAnimationName;
|
|
|
|
// CurrentAnimationName = AnimationFactory.Create(name);
|
|
// CurrentAnimationName.OnCompleted = onCompleted;
|
|
|
|
// return CurrentAnimationName;
|
|
// }
|
|
//}
|
|
}
|