From 3181b055aa2361cb9b4b981a21d4eaac8b0aa5dc Mon Sep 17 00:00:00 2001 From: Bob Date: Sat, 10 Oct 2009 00:31:16 +1300 Subject: [PATCH] Trait-based units. Any unit/building without sequences will cause a crash when built. --- .../OpenRa.DataStructures.csproj | 1 + OpenRa.DataStructures/TypeDictionary.cs | 38 ++ OpenRa.Game/Actor.cs | 468 +++++++++++++++++- OpenRa.Game/Building.cs | 24 - OpenRa.Game/Controller.cs | 187 +++---- OpenRa.Game/Game.cs | 138 +++--- OpenRa.Game/Graphics/WorldRenderer.cs | 202 ++++---- OpenRa.Game/MainWindow.cs | 250 +++++----- OpenRa.Game/MoveOrder.cs | 118 ++--- OpenRa.Game/OpenRa.Game.csproj | 6 +- OpenRa.Game/PlayerOwned.cs | 25 - OpenRa.Game/Refinery.cs | 61 --- OpenRa.Game/Sidebar.cs | 447 +++++++++-------- OpenRa.Game/Tree.cs | 32 -- OpenRa.Game/Unit.cs | 150 ------ OpenRa.Game/UnitMissions.cs | 292 +++++------ OpenRa.Game/UnitOrderGenerator.cs | 39 ++ OpenRa.Game/World.cs | 81 +-- 18 files changed, 1377 insertions(+), 1182 deletions(-) create mode 100755 OpenRa.DataStructures/TypeDictionary.cs mode change 100644 => 100755 OpenRa.Game/Actor.cs delete mode 100644 OpenRa.Game/Building.cs delete mode 100644 OpenRa.Game/PlayerOwned.cs delete mode 100644 OpenRa.Game/Refinery.cs delete mode 100644 OpenRa.Game/Tree.cs delete mode 100644 OpenRa.Game/Unit.cs create mode 100755 OpenRa.Game/UnitOrderGenerator.cs diff --git a/OpenRa.DataStructures/OpenRa.DataStructures.csproj b/OpenRa.DataStructures/OpenRa.DataStructures.csproj index fc717d6726..1fd76608f7 100644 --- a/OpenRa.DataStructures/OpenRa.DataStructures.csproj +++ b/OpenRa.DataStructures/OpenRa.DataStructures.csproj @@ -42,6 +42,7 @@ +