コード例 #1
0
ファイル: MiscInfo.cs プロジェクト: ratzlaff/XCom-tools
        public MiscInfo(Stream s, VarCollection v) : this()
        {
            StreamReader  sr   = new StreamReader(s);
            VarCollection vars = new VarCollection(sr, v);
            KeyVal        line;

            while ((line = vars.ReadLine()) != null)
            {
                switch (line.Keyword)
                {
                case "cursor":
                    stuff["cursor"] = @line.Rest;
                    break;

                case "font":
                    stuff["font"] = @line.Rest;
                    break;

                case "geograph":
                    stuff["geograph"] = @line.Rest;
                    break;

                case "ufograph":
                    stuff["ufograph"] = @line.Rest;
                    break;

#if !MAPEDIT
                case "console":
                    stuff["console"] = new ConsoleArgs(vars, (string)stuff["font"], (string)stuff["geograph"]);
                    break;
#endif
                }
            }
        }
コード例 #2
0
ファイル: MiscInfo.cs プロジェクト: pmprog/OpenXCOM.Tools
		public MiscInfo(Stream s,VarCollection v):this()
		{
			StreamReader sr = new StreamReader(s);
			VarCollection vars = new VarCollection(sr,v);
			KeyVal line;

			while((line=vars.ReadLine())!=null)
			{
				switch(line.Keyword)
				{
					case "cursor":
						stuff["cursor"] = @line.Rest;
						break;
					case "font":
						stuff["font"] = @line.Rest;
						break;
					case "geograph":
						stuff["geograph"][email protected];
						break;
					case "ufograph":
						stuff["ufograph"][email protected];
						break;
#if !MAPEDIT
					case "console":
						stuff["console"] = new ConsoleArgs(vars,(string)stuff["font"],(string)stuff["geograph"]);
						break;
#endif
				}
			}
		}