Per-player unit production. Also, fixed an interesting bug in Sequence.

This commit is contained in:
Bob
2009-10-30 04:03:37 +13:00
parent 8580ae0f78
commit 242fa717b6
6 changed files with 551 additions and 481 deletions

View File

@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using OpenRa.Game.Traits;
using System.IO;
@@ -43,7 +43,7 @@ namespace OpenRa.Game
var ret = new MemoryStream();
var w = new BinaryWriter(ret);
w.Write((uint)Player.Palette | 0x80000000u);
w.Write((byte)0xFF); //
w.Write((byte)0xFF);
w.Write(OrderString);
w.Write(Subject == null ? 0xFFFFFFFF : Subject.ActorID);
w.Write(TargetActor == null ? 0xFFFFFFFF : TargetActor.ActorID);
@@ -112,4 +112,4 @@ namespace OpenRa.Game
return new Order(subject, "BuildUnit", null, null, int2.Zero, unitName, Cursor.Default);
}
}
}
}