Esempio n. 1
0
        public static bool SaveToon(Toon toon)
        {
            if(Toons.ContainsKey(toon.PersistentID))
            {
                Logger.Error("Duplicate persistent toon id: {0}", toon.PersistentID);
                return false;
            }

            Toons.Add(toon.PersistentID, toon);
            toon.SaveToDB();
            return true;
        }
Esempio n. 2
0
        public static bool SaveToon(Toon toon)
        {
            if(Toons.ContainsKey(toon.ID))
            {
                Logger.Error("Duplicate toon id: " + toon.ID);
                return false;
            }

            Toons.Add(toon.ID, toon);
            toon.SaveToDB();
            return true;
        }