Add IActorPreviewInitInfo interface.

This commit is contained in:
Paul Chote
2017-06-28 18:16:14 +01:00
committed by RoosterDragon
parent e10b64d62c
commit b2c3a55c12
4 changed files with 21 additions and 1 deletions

View File

@@ -290,4 +290,12 @@ namespace OpenRA.Mods.Common.Traits
{
Order IssueDeployOrder(Actor self);
}
public enum ActorPreviewType { PlaceBuilding, ColorPicker, MapEditorSidebar }
[RequireExplicitImplementation]
public interface IActorPreviewInitInfo : ITraitInfo
{
IEnumerable<object> ActorPreviewInits(ActorInfo ai, ActorPreviewType type);
}
}