本文整理汇总了C#中Server.Items.MegaSpawner.CheckEntryErrors方法的典型用法代码示例。如果您正苦于以下问题:C# MegaSpawner.CheckEntryErrors方法的具体用法?C# MegaSpawner.CheckEntryErrors怎么用?C# MegaSpawner.CheckEntryErrors使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.Items.MegaSpawner
的用法示例。
在下文中一共展示了MegaSpawner.CheckEntryErrors方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
//.........这里部分代码省略.........
for ( int j = 6; j < settingCount; j++ )
{
ArrayList ItemsList = new ArrayList();
ItemsList.Add( reader.ReadString() );
ItemsList.Add( reader.ReadInt() );
ItemsList.Add( reader.ReadInt() );
List.Add( ItemsList );
}
break;
}
}
megaSpawner.SettingsList.Add( List );
}
}
else
{
for ( int i = 0; i < settingsCount; i++ )
megaSpawner.SettingsList.Add( reader.ReadString() );
megaSpawner.ConvertOldSettings();
}
}
if ( megaSpawner.Workspace )
{
megaSpawner.Delete();
}
else
{
megaSpawner.MoveToWorld( location, map );
megaSpawner.Start();
if ( megaSpawner.Imported != "" )
MC.FileImportAdd( megaSpawner.Imported, megaSpawner.ImportVersion );
megaSpawner.CompileSettings();
megaSpawner.CheckEntryErrors();
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() );
}
}
megaSpawner.Respawn();
}
success = true;
}
catch
{
if ( megaSpawner != null )
megaSpawner.Delete();
}
return success;
}