HuntTableExists() public static method

public static HuntTableExists ( Hunt h ) : bool
h Hunt
return bool
Beispiel #1
0
        public static void CreateNewHunt()
        {
            Hunt h = new Hunt();

            lock (hunts) {
                if (!nameExists("New Hunt"))
                {
                    h.name = "New Hunt";
                }
                else
                {
                    int index = 1;
                    while (nameExists("New Hunt " + index))
                    {
                        index++;
                    }
                    h.name = "New Hunt " + index;
                }

                h.dbtableid = 1;
                while (LootDatabaseManager.HuntTableExists(h))
                {
                    h.dbtableid++;
                }
            }
            resetHunt(h);
            h.trackAllCreatures = true;
            h.trackedCreatures  = "";
            hunts.Add(h);
        }