예제 #1
0
        internal static Dictionary <string, GEvent> Load(string name, string path)
        {
            var dict = new Dictionary <string, GEvent>();

            GEventCommon.Load(name, path + "/common", ref dict);

            return(dict);
        }
예제 #2
0
        internal static void Load(string name, string path, ref Dictionary <string, GEvent> dict)
        {
            if (!Directory.Exists(path))
            {
                return;
            }

            foreach (var file in Directory.EnumerateFiles(path, "*.txt"))
            {
                var eventobj = new GEventCommon(file);
                dict.Add(eventobj.key, eventobj);
            }
        }