Server.Mobiles.IntelliSpawner.CreateSpawnedObject C# (CSharp) Méthode

CreateSpawnedObject() protected méthode

protected CreateSpawnedObject ( int index ) : ISpawnable
index int
Résultat ISpawnable
        protected virtual ISpawnable CreateSpawnedObject(int index)
        {
            if (index >= m_SpawnNames.Count)
                return null;

            Type type = ScriptCompiler.FindTypeByName(ParseType(m_SpawnNames[index]));

            if (type != null)
            {
                try
                {
                    return Build(type, CommandSystem.Split(m_SpawnNames[index]));
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                }
            }

            return null;
        }