From: Miloš Klouček Date: Mon, 27 Oct 2008 18:49:31 +0000 (+0000) Subject: Store "one-way" worldmap attribute, because AnMaster said, that it's meaningfull X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9dd90c8ec789f10b1bf16b8eedcf108666016928;p=supertux.git Store "one-way" worldmap attribute, because AnMaster said, that it's meaningfull SVN-Revision: 5815 --- diff --git a/tools/tilemanager/Tile.cs b/tools/tilemanager/Tile.cs index 0aded8e92..a082fb929 100644 --- a/tools/tilemanager/Tile.cs +++ b/tools/tilemanager/Tile.cs @@ -57,6 +57,7 @@ public class Tile { public int Attributes; public int Data; public float AnimFps; + public string OneWayString; public ArrayList Images = new ArrayList(); public ArrayList EditorImages = new ArrayList(); @@ -134,6 +135,9 @@ public class Tile { AnimFps = 40; writer.Write("anim-fps", AnimFps); } + if(!String.IsNullOrEmpty(OneWayString)) { + writer.Write("one-way", OneWayString); + } writer.EndList("tile"); } @@ -158,6 +162,9 @@ public class Tile { case "anim-fps": AnimFps = parser.FloatValue; break; + case "one-way": + OneWayString = parser.StringValue; + break; case "data": Data = parser.IntegerValue; break;