X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=tools%2Ftilemanager%2FParser.cs;h=22d7701cb57d14391d78ff39aa51f227da792189;hb=f406067af6cbeb0a638078fe1d386d092583909c;hp=163a75e10813f7630e872bd635e816c2342093fb;hpb=7af002362d894832570cffcda1afbd5bafee06eb;p=supertux.git diff --git a/tools/tilemanager/Parser.cs b/tools/tilemanager/Parser.cs index 163a75e10..22d7701cb 100644 --- a/tools/tilemanager/Parser.cs +++ b/tools/tilemanager/Parser.cs @@ -1,3 +1,4 @@ +// $Id$ using System; using System.IO; @@ -63,6 +64,14 @@ public class Parser { return true; } + public static void ParseIntList(Parser parser, System.Collections.Generic.List intList) { + int d = parser.Depth; + while(parser.Depth >= d) { + intList.Add(parser.IntegerValue); + parser.Parse(); + } + } + private LispType type; public LispType Type { get { return type; }