Beispiel #1
0
 private static void TryAddGObject(GObject gobject)
 {
     if (gobject.Parse())
     {
         GObject exist = null;
         if (objects.TryGetValue(gobject.name, out exist))
         {
             throw new System.Exception(string.Format("has repeat data : {0}, file1 : {1}, file2 : {2}.", gobject.name, exist.file, gobject.name));
         }
         objects.Add(gobject.name, gobject);
         Utility.Logger.Log("parse data : {0}", gobject.name);
     }
 }