示例#1
0
        public static void LoadAllConfig(Action completeFunc)
        {
            reader("box_probability_define.csv", (content) =>
            {
                var lines = ReadTextToLines(content);
                BoxProbabilityDefine.LoadFromLines(lines);

                if (completeFunc != null)
                {
                    completeFunc();
                }
            });
        }
示例#2
0
        public static void LoadFromLines(List <string> lines)
        {
            var list = new BoxProbabilityDefine[lines.Count];

            for (int i = 0; i < lines.Count; i++)
            {
                string line = lines[i];
                var    row  = line.Split(',');
                var    obj  = new BoxProbabilityDefine();
                obj.ParseFromRow(row);
                list[i] = obj;
            }
            Data = list;
        }