minelayer works in mod dll

This commit is contained in:
Chris Forbes
2010-01-17 09:57:58 +13:00
parent 47f95ff596
commit a2e1fe3d4f
10 changed files with 35 additions and 46 deletions

View File

@@ -1,9 +1,7 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRa.Traits;
using OpenRa.Effects;
using OpenRa.Traits;
namespace OpenRa.Mods.RA
{
@@ -54,7 +52,4 @@ namespace OpenRa.Mods.RA
public IEnumerable<int2> OccupiedCells() { yield return self.Location; }
}
class MineImmuneInfo : StatelessTraitInfo<MineImmune> { }
class MineImmune { }
}

View File

@@ -0,0 +1,7 @@
using OpenRa.Traits;
namespace OpenRa.Mods.RA
{
class MineImmuneInfo : StatelessTraitInfo<MineImmune> { }
class MineImmune { }
}

View File

@@ -1,20 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq;
using OpenRa.Traits;
using OpenRa;
namespace OpenRa.Mods.RA
{
class MinelayerInfo : ITraitInfo
class MinelayerInfo : StatelessTraitInfo<Minelayer>
{
public readonly string Mine = "minv";
public object Create(Actor self)
{
return new Minelayer();
}
}
class Minelayer : IIssueOrder, IResolveOrder

View File

@@ -46,6 +46,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Mine.cs" />
<Compile Include="MineImmune.cs" />
<Compile Include="Minelayer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
@@ -67,4 +68,8 @@
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PostBuildEvent>mkdir "$(SolutionDir)mods/ra/"
copy "$(TargetPath)" "$(SolutionDir)mods/ra/"</PostBuildEvent>
</PropertyGroup>
</Project>