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); }
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); } }