本文整理汇总了C#中Server.Items.MegaSpawner.CheckDupedSettings方法的典型用法代码示例。如果您正苦于以下问题:C# MegaSpawner.CheckDupedSettings方法的具体用法?C# MegaSpawner.CheckDupedSettings怎么用?C# MegaSpawner.CheckDupedSettings使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.Items.MegaSpawner
的用法示例。
在下文中一共展示了MegaSpawner.CheckDupedSettings方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ImportMegaSpawner
//.........这里部分代码省略.........
}
}
catch{}
}
else
{
foreach ( XmlElement setting in settingsList.GetElementsByTagName( "Setting" ) )
{
try{ megaSpawner.SettingsList.Add( setting.InnerText ); }
catch{ errors++; totalErrors++; }
}
megaSpawner.ConvertOldSettings();
}
}
if ( errors > 0 )
{
megaSpawner.Delete();
amountOfSpawners--;
}
else
{
megaSpawner.MoveToWorld( location, map );
if ( location.Z == -999 )
megaSpawner.Location = GetLocation( megaSpawner, location );
if ( megaSpawner.Location.Z == -999 )
{
megaSpawner.Delete();
amountOfSpawners--;
autoFailures++;
return;
}
megaSpawner.CheckDupedSettings();
megaSpawner.CompileSettings();
megaSpawner.SettingsList.Sort( new MC.SettingsSorter() );
if ( megaSpawner.OverrideIndividualEntries )
{
for ( int i = 0; i < megaSpawner.OverrideAmount; i++ )
{
megaSpawner.OverrideRespawnEntryList.Add( "" );
megaSpawner.OverrideRespawnTimeList.Add( 0 );
megaSpawner.OverrideSpawnCounterList.Add( DateTime.Now );
megaSpawner.OverrideSpawnTimeList.Add( 0 );
megaSpawner.OverrideDespawnTimeList.Add( 0 );
}
}
else
{
for ( int i = 0; i < megaSpawner.EntryList.Count; i++ )
{
ArrayList respawnEntryList = new ArrayList();
ArrayList respawnTimeList = new ArrayList();
ArrayList spawnCounterList = new ArrayList();
ArrayList spawnTimeList = new ArrayList();
ArrayList respawnOnSaveList = new ArrayList();
ArrayList despawnTimeList = new ArrayList();
for ( int j = 0; j < (int) megaSpawner.AmountList[i]; j++ )
{
respawnEntryList.Add( (string) megaSpawner.EntryList[i] );
respawnTimeList.Add( 0 );
spawnCounterList.Add( DateTime.Now );
spawnTimeList.Add( 0 );
respawnOnSaveList.Add( (bool) false );
despawnTimeList.Add( 0 );
}
megaSpawner.RespawnEntryList.Add( respawnEntryList );
megaSpawner.RespawnTimeList.Add( respawnTimeList );
megaSpawner.SpawnCounterList.Add( spawnCounterList );
megaSpawner.SpawnTimeList.Add( spawnTimeList );
megaSpawner.RespawnOnSaveList.Add( respawnOnSaveList );
megaSpawner.DespawnTimeList.Add( despawnTimeList );
megaSpawner.SpawnedEntries.Add( new ArrayList() );
megaSpawner.LastMovedList.Add( new ArrayList() );
}
}
SpawnerList.Add( megaSpawner );
if ( megaSpawner.Active )
{
megaSpawner.Respawn();
}
HideSpawnerList.Add( (bool) false );
MSGCheckBoxesList.Add( (bool) false );
MC.FileImportAdd( megaSpawner.Imported, megaSpawner.ImportVersion );
}
}