Removing dead crap from repos

git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@2048 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
chrisf
2008-07-20 18:26:03 +00:00
parent b77a116f60
commit 6f8919d301
17 changed files with 82 additions and 113 deletions

View File

@@ -48,12 +48,12 @@ namespace OpenRa.Game
{
public static UnitMission Sleep()
{
return delegate { };
return t => { };
}
public static UnitMission Move( Unit unit, int2 destination )
{
return delegate( int t )
return t =>
{
Game game = unit.game;
@@ -92,14 +92,14 @@ namespace OpenRa.Game
public static UnitMission Deploy( Unit unit )
{
return delegate( int t )
return t =>
{
Game game = unit.game;
if( Turn( unit, 12 ) )
return;
game.world.AddFrameEndTask( delegate
game.world.AddFrameEndTask( _ =>
{
game.world.Remove( unit );
game.world.Add( new ConstructionYard( unit.fromCell - new int2( 1, 1 ), unit.owner, game ) );
@@ -112,7 +112,7 @@ namespace OpenRa.Game
public static UnitMission Harvest( Unit unit )
{
UnitMission order = null;
order = delegate
order = t =>
{
// TODO: check that there's actually some ore in this cell :)
@@ -120,15 +120,15 @@ namespace OpenRa.Game
if( Turn( unit, ( unit.facing + 1 ) & ~3 ) )
return;
unit.currentOrder = delegate { };
unit.currentOrder = _ => { };
if( unit.nextOrder == null )
unit.nextOrder = order;
string sequenceName = string.Format( "harvest{0}", unit.facing / 4 );
unit.animation.PlayThen( sequenceName, delegate
unit.animation.PlayThen( sequenceName, () =>
{
unit.currentOrder = null;
unit.animation.PlayFetchIndex( "idle", delegate { return unit.facing; } );
unit.animation.PlayFetchIndex("idle", () => unit.facing);
} );
};
return order;