Introduce WithSpriteBody trait

Add upgrade rules

Add ISpriteBody
This commit is contained in:
penev92
2015-04-30 02:59:35 +03:00
parent 16c61cb929
commit c5dead9098
13 changed files with 128 additions and 79 deletions

View File

@@ -8,6 +8,7 @@
*/
#endregion
using System;
using System.Collections.Generic;
using OpenRA.Activities;
using OpenRA.Graphics;
@@ -17,6 +18,13 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
{
public interface ISpriteBody
{
void PlayCustomAnimation(Actor self, string newAnimation, Action after);
void PlayCustomAnimationRepeating(Actor self, string name);
void PlayCustomAnimationBackwards(Actor self, string name, Action after);
}
public interface INotifyResourceClaimLost
{
void OnNotifyResourceClaimLost(Actor self, ResourceClaim claim, Actor claimer);