Rename LeavesHusk to SpawnActorOnDeath

This commit is contained in:
abcdefg30
2015-08-09 19:24:14 +02:00
parent abf5047072
commit e8477b1b5a
20 changed files with 107 additions and 103 deletions

View File

@@ -110,7 +110,7 @@
<Compile Include="Traits\SupportPowers\ChronoshiftPower.cs" />
<Compile Include="Traits\SupportPowers\GpsPower.cs" />
<Compile Include="Traits\SupportPowers\ParatroopersPower.cs" />
<Compile Include="Traits\LeavesHusk.cs" />
<Compile Include="Traits\SpawnActorOnDeath.cs" />
<Compile Include="Traits\TargetableSubmarine.cs" />
<Compile Include="Scripting\Properties\ChronosphereProperties.cs" />
<Compile Include="Scripting\Properties\ParadropProperties.cs" />

View File

@@ -19,7 +19,7 @@ namespace OpenRA.Mods.RA.Traits
public enum OwnerType { Victim, Killer, InternalName }
[Desc("Spawn another actor immediately upon death.")]
public class LeavesHuskInfo : ITraitInfo
public class SpawnActorOnDeathInfo : ITraitInfo
{
[ActorReference, FieldLoader.Require]
[Desc("Actor to spawn on death.")]
@@ -42,15 +42,15 @@ namespace OpenRA.Mods.RA.Traits
[Desc("Skips the husk actor's make animations if true.")]
public readonly bool SkipMakeAnimations = true;
public object Create(ActorInitializer init) { return new LeavesHusk(init, this); }
public object Create(ActorInitializer init) { return new SpawnActorOnDeath(init, this); }
}
public class LeavesHusk : INotifyKilled
public class SpawnActorOnDeath : INotifyKilled
{
readonly LeavesHuskInfo info;
readonly SpawnActorOnDeathInfo info;
readonly string race;
public LeavesHusk(ActorInitializer init, LeavesHuskInfo info)
public SpawnActorOnDeath(ActorInitializer init, SpawnActorOnDeathInfo info)
{
this.info = info;