Add AppearsOnMapPreview
Allows preplaced actors to be rendered on map preview when saving the map. Also removes requirements for ResourceLayer in OpenRA.Game and moves it to OpenRA.Mods.Common.
This commit is contained in:
committed by
reaperrr
parent
ea4f24d0b7
commit
9fef2c01ec
@@ -287,6 +287,11 @@ namespace OpenRA.Traits
|
||||
|
||||
public interface ISelectionDecorations { void DrawRollover(Actor self, WorldRenderer worldRenderer); }
|
||||
|
||||
public interface IMapPreviewSignatureInfo : ITraitInfoInterface
|
||||
{
|
||||
void PopulateMapPreviewSignatureCells(Map map, ActorInfo ai, ActorReference s, List<Pair<MPos, Color>> destinationBuffer);
|
||||
}
|
||||
|
||||
public interface IOccupySpaceInfo : ITraitInfoInterface
|
||||
{
|
||||
IReadOnlyDictionary<CPos, SubCell> OccupiedCells(ActorInfo info, CPos location, SubCell subCell = SubCell.Any);
|
||||
|
||||
Reference in New Issue
Block a user