Separated ship squad from ground unit squad

Just like aircrafts are independent from ground squads.
This commit is contained in:
Forcecore
2017-07-07 20:32:40 -05:00
committed by reaperrr
parent 5ddf28fa81
commit 8027bed6b2
5 changed files with 219 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.AI
{
public enum SquadType { Assault, Air, Rush, Protection }
public enum SquadType { Assault, Air, Rush, Protection, Naval }
public class Squad
{
@@ -54,6 +54,9 @@ namespace OpenRA.Mods.Common.AI
case SquadType.Protection:
FuzzyStateMachine.ChangeState(this, new UnitsForProtectionIdleState(), true);
break;
case SquadType.Naval:
FuzzyStateMachine.ChangeState(this, new NavyUnitsIdleState(), true);
break;
}
}