From 0e6fcdf64fb73194e2cac7b668a791d8e0eb866b Mon Sep 17 00:00:00 2001 From: Bob Date: Fri, 29 Jan 2010 19:00:02 +1300 Subject: [PATCH] trees work again. --- OpenRa.Game/Game.cs | 4 +-- mods/ra/rules.yaml | 72 +++++++++++++++++++++++++++++++++++++ mods/ra/sequences.xml | 31 ++++++++++++++-- mods/ra/trees.ini | 82 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 185 insertions(+), 4 deletions(-) diff --git a/OpenRa.Game/Game.cs b/OpenRa.Game/Game.cs index 5d5b393c90..30b3812138 100644 --- a/OpenRa.Game/Game.cs +++ b/OpenRa.Game/Game.cs @@ -70,8 +70,8 @@ namespace OpenRa Timer.Time( "SeqProv, viewport: {0}" ); skipMakeAnims = true; - //foreach (var treeReference in Game.world.Map.Trees) - // world.CreateActor(treeReference.Image, new int2(treeReference.Location), null); + foreach (var treeReference in Game.world.Map.Trees) + world.CreateActor(treeReference.Image, new int2(treeReference.Location), null); Timer.Time( "trees: {0}" ); world.LoadMapActors(Rules.AllRules); diff --git a/mods/ra/rules.yaml b/mods/ra/rules.yaml index 22b8bd1998..f1a5600fc9 100644 --- a/mods/ra/rules.yaml +++ b/mods/ra/rules.yaml @@ -1758,6 +1758,78 @@ MINE: SeedsOre: -Selectable: +BOXES01: + Inherits: ^Building + Building: + Footprint: x + Dimensions: 1,1 + RenderBuilding: + -Selectable: + +BOXES02: + Inherits: ^Building + Building: + Footprint: x + Dimensions: 1,1 + RenderBuilding: + -Selectable: + +BOXES03: + Inherits: ^Building + Building: + Footprint: x + Dimensions: 1,1 + RenderBuilding: + -Selectable: + +BOXES04: + Inherits: ^Building + Building: + Footprint: x + Dimensions: 1,1 + RenderBuilding: + -Selectable: + +BOXES05: + Inherits: ^Building + Building: + Footprint: x + Dimensions: 1,1 + RenderBuilding: + -Selectable: + +BOXES06: + Inherits: ^Building + Building: + Footprint: x + Dimensions: 1,1 + RenderBuilding: + -Selectable: + +BOXES07: + Inherits: ^Building + Building: + Footprint: x + Dimensions: 1,1 + RenderBuilding: + -Selectable: + +BOXES08: + Inherits: ^Building + Building: + Footprint: x + Dimensions: 1,1 + RenderBuilding: + -Selectable: + +BOXES09: + Inherits: ^Building + Building: + Footprint: x + Dimensions: 1,1 + RenderBuilding: + -Selectable: + FCOM: Inherits: ^Building Building: diff --git a/mods/ra/sequences.xml b/mods/ra/sequences.xml index 47d231f898..9fec79a2d1 100644 --- a/mods/ra/sequences.xml +++ b/mods/ra/sequences.xml @@ -1,4 +1,4 @@ - +