Remove Actor.HasTrait<T>()

This commit is contained in:
atlimit8
2015-08-01 23:53:58 -05:00
parent 959914779f
commit 85fab45451
79 changed files with 153 additions and 153 deletions

View File

@@ -18,6 +18,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
{
public interface ISpriteBodyInfo : ITraitInfo { }
public interface ISpriteBody
{
void PlayCustomAnimation(Actor self, string newAnimation, Action after);
@@ -67,6 +68,7 @@ namespace OpenRA.Mods.Common.Traits
void Undocked();
}
public interface ITechTreePrerequisiteInfo : ITraitInfo { }
public interface ITechTreePrerequisite
{
IEnumerable<string> ProvidesPrerequisites { get; }
@@ -91,6 +93,7 @@ namespace OpenRA.Mods.Common.Traits
public interface INotifyTransform { void BeforeTransform(Actor self); void OnTransform(Actor self); void AfterTransform(Actor toActor); }
public interface IAcceptResourcesInfo : ITraitInfo { }
public interface IAcceptResources
{
void OnDock(Actor harv, DeliverResources dockOrder);