Merge pull request #12730 from abcdefg30/aircraftCrate

Fix GiveUnitCrateAction and SpawnMPUnits being limited to MobileInfo
This commit is contained in:
reaperrr
2017-02-12 17:27:24 +01:00
committed by GitHub
6 changed files with 62 additions and 28 deletions

View File

@@ -265,7 +265,11 @@ namespace OpenRA.Traits
[RequireExplicitImplementation]
public interface ISelectionBar { float GetValue(); Color GetColor(); bool DisplayWhenEmpty { get; } }
public interface IPositionableInfo : ITraitInfoInterface { }
public interface IPositionableInfo : IOccupySpaceInfo
{
bool CanEnterCell(World world, Actor self, CPos cell, Actor ignoreActor = null, bool checkTransientActors = true);
}
public interface IPositionable : IOccupySpace
{
bool IsLeavingCell(CPos location, SubCell subCell = SubCell.Any);