本文整理汇总了C#中Server.Mobiles.XmlSpawner.GetWorldLocation方法的典型用法代码示例。如果您正苦于以下问题:C# XmlSpawner.GetWorldLocation方法的具体用法?C# XmlSpawner.GetWorldLocation怎么用?C# XmlSpawner.GetWorldLocation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.Mobiles.XmlSpawner
的用法示例。
在下文中一共展示了XmlSpawner.GetWorldLocation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SpawnObject
// command loggable constructor
public SpawnObject( Mobile from, XmlSpawner spawner, string name, int maxamount )
{
if( from != null && spawner != null )
{
bool found = false;
// go through the current spawner objects and see if this is a new entry
if( spawner.m_SpawnObjects != null )
{
for( int i = 0; i < spawner.m_SpawnObjects.Count; i++ )
{
SpawnObject s = spawner.m_SpawnObjects[i] as SpawnObject;
if( s != null && s.TypeName == name )
{
found = true;
break;
}
}
}
if( !found )
{
CommandLogging.WriteLine( from, "{0} {1} added to XmlSpawner {2} '{3}' [{4}, {5}] ({6}) : {7}", from.AccessLevel, CommandLogging.Format( from ), spawner.Serial, spawner.Name, spawner.GetWorldLocation().X, spawner.GetWorldLocation().Y, spawner.Map, name );
}
}
TypeName = name;
MaxCount = maxamount;
SubGroup = 0;
SequentialResetTime = 0;
SequentialResetTo = 0;
KillsNeeded = 0;
RestrictKillsToSubgroup = false;
ClearOnAdvance = true;
SpawnedObjects = new ArrayList();
}