Esempio n. 1
0
        public static void LoadFromLines(List <string> lines)
        {
            var rows = new string[lines.Count][];

            for (int i = 0; i < lines.Count; i++)
            {
                string line = lines[i];
                rows[i] = line.Split(',');
            }
            Instance = new GlobalPropertyDefine();
            Instance.ParseFromRows(rows);
        }
Esempio n. 2
0
        public static void LoadAllConfig(Action completeFunc)
        {
            reader("global_property_define.csv", (content) =>
            {
                var lines = ReadTextToLines(content);
                GlobalPropertyDefine.LoadFromLines(lines);

                if (completeFunc != null)
                {
                    completeFunc();
                }
            });
        }