Add a debug visualization for muzzle positions.

This commit is contained in:
Paul Chote
2013-03-29 14:11:40 +13:00
parent 5bd34bda22
commit 0cff8b5b12
11 changed files with 118 additions and 3 deletions

View File

@@ -21,6 +21,7 @@ namespace OpenRA.Traits
public bool PathDebug = false;
public bool UnlimitedPower;
public bool BuildAnywhere;
public bool ShowMuzzles;
public object Create (ActorInitializer init) { return new DeveloperMode(this); }
}
@@ -36,6 +37,9 @@ namespace OpenRA.Traits
[Sync] public bool UnlimitedPower;
[Sync] public bool BuildAnywhere;
// Client size only
public bool ShowMuzzles;
public DeveloperMode(DeveloperModeInfo info)
{
Info = info;
@@ -45,6 +49,7 @@ namespace OpenRA.Traits
PathDebug = info.PathDebug;
UnlimitedPower = info.UnlimitedPower;
BuildAnywhere = info.BuildAnywhere;
ShowMuzzles = info.ShowMuzzles;
}
public void ResolveOrder (Actor self, Order order)