format TODO: uniformly to auto-generate task list in MonoDevelop

This commit is contained in:
Matthias Mailänder
2013-03-27 09:45:17 +01:00
parent a682670b97
commit 0a82bfe552
47 changed files with 56 additions and 61 deletions

View File

@@ -30,7 +30,7 @@ namespace OpenRA.Mods.RA.Activities
if (!cargo.CanLoad(transport, self))
return NextActivity;
// Todo: Queue a move order to the transport? need to be
// TODO: Queue a move order to the transport? need to be
// careful about units that can't path to the transport
if ((transport.Location - self.Location).LengthSquared > 2)
return NextActivity;

View File

@@ -60,7 +60,7 @@ namespace OpenRA.Mods.RA.Activities
return Util.SequenceActivities( mobile.MoveTo(p, 0), this );
}
// todo: return somewhere likely to be safe (near fix) so we're not sitting out in the minefield.
// TODO: return somewhere likely to be safe (near fix) so we're not sitting out in the minefield.
return new Wait(20); // nothing to do here
}

View File

@@ -63,7 +63,7 @@ namespace OpenRA.Mods.RA.Activities
if (facing != null && facing.Facing != unloadFacing)
return Util.SequenceActivities( new Turn(unloadFacing), this );
// todo: handle the BS of open/close sequences, which are inconsistent,
// TODO: handle the BS of open/close sequences, which are inconsistent,
// for reasons that probably make good sense to the westwood guys.
var cargo = self.Trait<Cargo>();

View File

@@ -74,7 +74,7 @@ namespace OpenRA.Mods.RA.Air
var e = (turnRadius / d.Length) * d;
var f = new float2(-e.Y, e.X); /* rotate */
/* todo: support internal tangents, too! */
/* TODO: support internal tangents, too! */
if (f.X > 0) f = -f;

View File

@@ -24,7 +24,7 @@ namespace OpenRA.Mods.RA
public readonly bool Hidden = false;
public readonly int BuildLimit = 0;
// todo: UI fluff; doesn't belong here
// TODO: UI fluff; doesn't belong here
public readonly int BuildPaletteOrder = 9999;
public readonly string Hotkey = null;
}

View File

@@ -28,7 +28,7 @@ namespace OpenRA.Mods.RA.Buildings
public readonly string[] TerrainTypes = {};
[Desc("The range to the next building it can be constructed. Set it higher for walls.")]
public readonly int Adjacent = 2;
[Desc("x means space it blocks, _ is a part that is passable by actors (like bridges).")]
[Desc("x means space it blocks, _ is a part that is passable by actors.")]
public readonly string Footprint = "x";
public readonly int2 Dimensions = new int2(1, 1);

View File

@@ -96,7 +96,7 @@ namespace OpenRA.Mods.RA
if (move != null && move.Altitude > info.minimalUnloadAltitude)
return false;
// Todo: Check if there is a free tile to unload to
// TODO: Check if there is a free tile to unload to
return true;
}

View File

@@ -21,7 +21,7 @@ namespace OpenRA.Mods.RA
public readonly int Range = 3;
}
class CarpetBomb : ITick, ISync // todo: maybe integrate this better with the normal weapons system?
class CarpetBomb : ITick, ISync // TODO: maybe integrate this better with the normal weapons system?
{
[Sync] CPos Target;
[Sync] int dropDelay;

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Mods.RA
if (chronoshiftReturnTicks == 0)
{
self.CancelActivity();
// Todo: need a new Teleport method that will move to the closest available cell
// TODO: need a new Teleport method that will move to the closest available cell
self.QueueActivity(new Teleport(chronosphere, chronoshiftOrigin, killCargo));
}
}
@@ -46,7 +46,7 @@ namespace OpenRA.Mods.RA
// Can't be used in synced code, except with ignoreVis.
public virtual bool CanChronoshiftTo(Actor self, CPos targetLocation)
{
// Todo: Allow enemy units to be chronoshifted into bad terrain to kill them
// TODO: Allow enemy units to be chronoshifted into bad terrain to kill them
return (self.HasTrait<ITeleportable>() && self.Trait<ITeleportable>().CanEnterCell(targetLocation));
}

View File

@@ -91,7 +91,8 @@ namespace OpenRA.Mods.RA
public class MustBeDestroyedInfo : TraitInfo<MustBeDestroyed> { }
public class MustBeDestroyed { }
[Desc("Provides game mode information for players/observers. Goes on WorldActor - observers don't have a player it can live on.")]
[Desc("Provides game mode information for players/observers.",
"Goes on WorldActor - observers don't have a player it can live on.")]
public class ConquestObjectivesPanelInfo : ITraitInfo
{
public string ObjectivesPanel = null;

View File

@@ -24,7 +24,6 @@ namespace OpenRA.Mods.RA
[Desc("Audio clip to play when the crate is collected.")]
public string Notification = null;
[ActorReference]
[Desc("Comma-separated list of actor types the crate action should not apply to.")]
public string[] ExcludedActorTypes = { };
public virtual object Create(ActorInitializer init) { return new CrateAction(init.self, this); }

View File

@@ -44,7 +44,7 @@ namespace OpenRA.Mods.RA
if (--ticks <= 0)
{
ticks = Info.SpawnInterval * 25; // todo: randomize
ticks = Info.SpawnInterval * 25; // TODO: randomize
crates.RemoveAll(x => !x.IsInWorld); // BUG: this removes crates that are cargo of a BADR!

View File

@@ -39,7 +39,7 @@ namespace OpenRA.Mods.RA
if (--ticks <= 0)
{
var info = self.Info.Traits.Get<CrateSpawnerInfo>();
ticks = info.SpawnInterval * 25; // todo: randomize
ticks = info.SpawnInterval * 25; // TODO: randomize
crates.RemoveAll(x => !x.IsInWorld);

View File

@@ -26,6 +26,7 @@ namespace OpenRA.Mods.RA.Effects
[Desc("Pixels at maximum range")]
public readonly float Inaccuracy = 0;
public readonly string Image = null;
[Desc("Check for whether an actor with Wall: trait blocks fire")]
public readonly bool High = false;
public readonly int RangeLimit = 0;
public readonly int Arm = 0;

View File

@@ -24,6 +24,7 @@ namespace OpenRA.Mods.RA.Effects
{
public readonly int Speed = 1;
public readonly int Arm = 0;
[Desc("Check for whether an actor with Wall: trait blocks fire")]
public readonly bool High = false;
public readonly bool Shadow = true;
public readonly bool Proximity = false;

View File

@@ -14,7 +14,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.RA
{
// for some reason i get yelled at for pbox.e1 not having Cargo, but that's a lie?
// for some reason I get yelled at for pbox.e1 not having Cargo, but that's a lie?
class EmitCargoOnSellInfo : TraitInfo<EmitCargoOnSell>//, Requires<Cargo>
{
}
@@ -23,8 +23,7 @@ namespace OpenRA.Mods.RA
{
void Emit(Actor self)
{
// todo.
// would like to spill all actors out similar to how we call Unload
// TODO: would like to spill all actors out similar to how we call Unload
}
public void Selling(Actor self) { Emit(self); }

View File

@@ -27,7 +27,7 @@ namespace OpenRA.Mods.RA
public Color RadarColorOverride(Actor self)
{
// todo: why is making this half-opaque conflated with hiding the actor from non-allies?
// TODO: why is making this half-opaque conflated with hiding the actor from non-allies?
return Color.FromArgb(128, self.Owner.ColorRamp.GetColor(0));
}

View File

@@ -76,7 +76,7 @@ namespace OpenRA.Mods.RA
var mins = CPos.Min(start, end);
var maxs = CPos.Max(start, end);
/* todo: proper endcaps, if anyone cares (which won't happen unless depth is large) */
/* TODO: proper endcaps, if anyone cares (which won't happen unless depth is large) */
var p = end - start;
var q = new float2(p.Y, -p.X);
@@ -140,7 +140,7 @@ namespace OpenRA.Mods.RA
public void RenderBeforeWorld(WorldRenderer wr, World world) { }
public string GetCursor(World world, CPos xy, MouseInput mi) { lastMousePos = xy; return "ability"; } /* todo */
public string GetCursor(World world, CPos xy, MouseInput mi) { lastMousePos = xy; return "ability"; } /* TODO */
}
public void RenderAfterWorld(WorldRenderer wr)

View File

@@ -98,7 +98,7 @@ namespace OpenRA.Mods.RA
return rp.rallyPoint;
}
// todo: don't talk about HeliFly here.
// TODO: don't talk about HeliFly here.
var helicopter = newUnit.TraitOrDefault<Helicopter>();
if (helicopter != null)
{

View File

@@ -33,7 +33,7 @@ namespace OpenRA.Mods.RA.Render
}
}
/* todo: native elevation support on turrets, and this dies? */
/* TODO: native elevation support on turrets, and this dies? */
class RenderUnitTurretedAimInfo : RenderUnitTurretedInfo
{

View File

@@ -36,7 +36,7 @@ namespace OpenRA.Scripting
// Mute world sounds
var oldModifier = Sound.SoundVolumeModifier;
// Todo: this also modifies vqa audio
// TODO: this also modifies vqa audio
//Sound.SoundVolumeModifier = 0f;
// Stop music while fmv plays

View File

@@ -186,7 +186,7 @@ namespace OpenRA.Mods.RA.Widgets
public override void Draw()
{
if (!IsVisible()) return;
// todo: fix
// TODO: fix
int paletteHeight = DrawPalette(CurrentQueue);
DrawBuildTabs(world, paletteHeight);

View File

@@ -19,7 +19,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
[ObjectCreator.UseCtor]
public OrderButtonsChromeLogic(World world)
{
/* todo: attach this to the correct widget, to remove the lookups below */
/* TODO: attach this to the correct widget, to remove the lookups below */
var r = Ui.Root;
var gameRoot = r.Get("INGAME_ROOT");

View File

@@ -71,7 +71,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
currentMap = currentReplay.Map();
panel.Get<LabelWidget>("DURATION").GetText =
() => WidgetUtils.FormatTime(currentReplay.Duration * 3 /* todo: 3:1 ratio isnt always true. */);
() => WidgetUtils.FormatTime(currentReplay.Duration * 3 /* TODO: 3:1 ratio isnt always true. */);
panel.Get<MapPreviewWidget>("MAP_PREVIEW").Map = () => currentMap;
panel.Get<LabelWidget>("MAP_TITLE").GetText =
() => currentMap != null ? currentMap.Title : "(Unknown Map)";

View File

@@ -75,7 +75,7 @@ namespace OpenRA.Mods.RA.Widgets
return false;
}
// todo: take ALL this garbage and route it through the OrderTargeter stuff.
// TODO: take ALL this garbage and route it through the OrderTargeter stuff.
bool PerformAttackMove()
{