public PlayerTemplateParser()
        {
            bool flag = this._holder == null;

            if (flag)
            {
                this._holder = PlayerTemplateHolder.getInstance();
            }
            string text  = "Data//PlayerTemplate.xml";
            bool   flag2 = File.Exists(text);

            if (flag2)
            {
                this.parse(text);
            }
            else
            {
                CLogger.getInstance().info("[PlayerTemplateParser]: No Have File: " + text);
            }
            bool flag3 = this._holder != null;

            if (flag3)
            {
                this._holder.log();
            }
        }
示例#2
0
 public static void Load()
 {
     LoginClientManager.getInstance();
     PlayerTemplateParser.getInstance();
     GameServerInfoParser.getInstance();
     StartedInventoryItemsParser.getInstance();
     RankExpInfoParser.getInstance();
     StartedInventoryItemsHolder.getInstance();
     TutorialParser.Load();
     PlayerTemplateHolder.getInstance();
     GameServerInfoHolder.getInstance();
     RankExpInfoHolder.getInstance();
 }
        public PlayerTemplateParser()
        {
            if (this._holder == null)
            {
                this._holder = PlayerTemplateHolder.getInstance();
            }
            string path = "data//PlayerTemplate.xml";

            if (File.Exists(path))
            {
                this.parse(path);
            }
            else
            {
                CLogger.getInstance().info("[PlayerTemplateParser]: No Have File: " + path);
            }
            if (this._holder == null)
            {
                return;
            }
            this._holder.log();
        }