示例#1
0
        public RawInfo parseConfig()
        {
            var msgParser = new Q3DemoConfigParser();

            this.doParse(msgParser);
            RawInfo info = new RawInfo(file_name, msgParser.clc, msgParser.client.clientEvents);

            return(info);
        }
示例#2
0
        private Q3DemoConfigParser doParse(Q3DemoConfigParser msgParser)
        {
            Q3MessageStream messageStream = new Q3MessageStream(this.file_name);

            try
            {
                Q3DemoMessage msg = null;
                while ((msg = messageStream.nextMessage()) != null)
                {
                    if (!msgParser.parse(msg))
                    {
                        break;
                    }
                }
            }
            catch (Exception r) {
                Q3Utils.PrintDebug(msgParser.clc.errors, r.Message);
            }
            messageStream.close();
            return(msgParser);
        }