Store "one-way" worldmap attribute, because AnMaster said, that it's meaningfull
authorMiloš Klouček <m.kloucek.m@atlas.cz>
Mon, 27 Oct 2008 18:49:31 +0000 (18:49 +0000)
committerMiloš Klouček <m.kloucek.m@atlas.cz>
Mon, 27 Oct 2008 18:49:31 +0000 (18:49 +0000)
SVN-Revision: 5815

tools/tilemanager/Tile.cs

index 0aded8e..a082fb9 100644 (file)
@@ -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;