start of shellmap (dropped its actors :(); fix saving of actors from the editor

This commit is contained in:
Chris Forbes
2010-09-09 22:06:47 +12:00
parent 452f7f7bff
commit 975fa28f62
4 changed files with 48 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ namespace OpenRA.FileFormats
foreach( var init in InitDict ) foreach( var init in InitDict )
{ {
var initName = init.GetType().Name; var initName = init.GetType().Name;
ret.NodesDict.Add( initName.Substring( 0, initName.Length - 4 ), FieldSaver.Save( init ) ); ret.Nodes.Add( new MiniYamlNode( initName.Substring( 0, initName.Length - 4 ), FieldSaver.Save( init ) ) );
} }
return ret; return ret;
} }

Binary file not shown.

View File

@@ -0,0 +1 @@
8f204fea98ed407cdbb7be8fd631368cd7571d20

View File

@@ -0,0 +1,46 @@
Selectable: False
MapFormat: 3
Title: shellmap
Description: CNC Shellmap
Author: Chris Forbes
PlayerCount: 0
Tileset: WINTER
MapSize: 96,48
TopLeft: 8,1
BottomRight: 88,46
Players:
PlayerReference@Neutral:
Name: Neutral
Palette:
Race: gdi
OwnsWorld: True
NonCombatant: True
Playable: False
DefaultStartingUnits: False
Color: 255,238,238,238
Color2: 255,44,28,24
InitialCash: 0
Allies:
Enemies:
Actors:
Actor0: tc04
Location: 10,2
Owner: Neutral
Waypoints:
Smudges:
Rules: