Move ImpactType to Common.Warhead

This commit is contained in:
reaperrr
2016-10-20 19:24:15 +02:00
parent 0eb8def2b8
commit 7235835280
2 changed files with 16 additions and 14 deletions

View File

@@ -66,20 +66,6 @@ namespace OpenRA.Traits
}
}
[Flags]
public enum ImpactType
{
None = 0,
Ground = 1,
GroundHit = 2,
Water = 4,
WaterHit = 8,
Air = 16,
AirHit = 32,
TargetTerrain = 64,
TargetHit = 128
}
public class AttackInfo
{
public Damage Damage;

View File

@@ -9,12 +9,27 @@
*/
#endregion
using System;
using System.Collections.Generic;
using System.Drawing;
using OpenRA.Traits;
namespace OpenRA.Mods.Common.Warheads
{
[Flags]
public enum ImpactType
{
None = 0,
Ground = 1,
GroundHit = 2,
Water = 4,
WaterHit = 8,
Air = 16,
AirHit = 32,
TargetTerrain = 64,
TargetHit = 128
}
[Desc("Base warhead class. This can be used to derive other warheads from.")]
public abstract class Warhead : IWarhead
{
@@ -32,6 +47,7 @@ namespace OpenRA.Mods.Common.Warheads
[Desc("Delay in ticks before applying the warhead effect.", "0 = instant (old model).")]
public readonly int Delay = 0;
int IWarhead.Delay { get { return Delay; } }
[Desc("The color used for this warhead's visualization in the world's `WarheadDebugOverlay` trait.")]