Beispiel #1
0
        private static int GetAIID()
        {
            while (true)
            {
                if (_idNext == 1000000000)
                {
                    _idNext = 1;
                }

                if (!NPCTracker.Contains(_idNext))
                {
                    break;
                }
                _idNext++;
            }

            return(_idNext++);
        }