rename NewUnitInfo -> ActorInfo
This commit is contained in:
@@ -19,7 +19,7 @@ namespace OpenRa.Traits
|
||||
|
||||
public Production( Actor self ) { }
|
||||
|
||||
public virtual int2? CreationLocation( Actor self, NewUnitInfo producee )
|
||||
public virtual int2? CreationLocation( Actor self, ActorInfo producee )
|
||||
{
|
||||
return ( 1 / 24f * self.CenterLocation ).ToInt2();
|
||||
}
|
||||
@@ -29,7 +29,7 @@ namespace OpenRa.Traits
|
||||
return newUnit.Info.Traits.GetOrDefault<UnitInfo>().InitialFacing;
|
||||
}
|
||||
|
||||
public bool Produce( Actor self, NewUnitInfo producee )
|
||||
public bool Produce( Actor self, ActorInfo producee )
|
||||
{
|
||||
var location = CreationLocation( self, producee );
|
||||
if( location == null || Game.UnitInfluence.GetUnitsAt( location.Value ).Any() )
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace OpenRa.Traits
|
||||
return null;
|
||||
}
|
||||
|
||||
public override int2? CreationLocation(Actor self, NewUnitInfo producee)
|
||||
public override int2? CreationLocation(Actor self, ActorInfo producee)
|
||||
{
|
||||
return FindAdjacentTile(self, producee.Traits.Get<OwnedActorInfo>().WaterBound ?
|
||||
UnitMovementType.Float : UnitMovementType.Wheel); /* hackety hack */
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace OpenRa.Traits
|
||||
|
||||
interface IProducer
|
||||
{
|
||||
bool Produce( Actor self, NewUnitInfo producee );
|
||||
bool Produce( Actor self, ActorInfo producee );
|
||||
void SetPrimaryProducer(Actor self, bool isPrimary);
|
||||
}
|
||||
public interface IOccupySpace { IEnumerable<int2> OccupiedCells(); }
|
||||
|
||||
Reference in New Issue
Block a user