本文整理汇总了C#中Server.Mobiles.XmlSpawner.Respawn方法的典型用法代码示例。如果您正苦于以下问题:C# XmlSpawner.Respawn方法的具体用法?C# XmlSpawner.Respawn怎么用?C# XmlSpawner.Respawn使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.Mobiles.XmlSpawner
的用法示例。
在下文中一共展示了XmlSpawner.Respawn方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GenerateDeco
public static void GenerateDeco(CommandEventArgs e)
{
string name = "highseas";
CharydbisSpawner.GenerateCharydbisSpawner();
BountyQuestSpawner.GenerateShipSpawner();
CorgulAltar altar;
altar = new CorgulAltar();
altar.MoveToWorld(new Point3D(2453, 865, 0), Map.Felucca);
WeakEntityCollection.Add(name, altar);
altar = new CorgulAltar();
altar.MoveToWorld(new Point3D(2453, 865, 0), Map.Trammel);
WeakEntityCollection.Add(name, altar);
ProfessionalBountyBoard board;
board = new ProfessionalBountyBoard();
board.MoveToWorld(new Point3D(4544, 2298, -1), Map.Trammel);
WeakEntityCollection.Add(name, board);
board = new ProfessionalBountyBoard();
board.MoveToWorld(new Point3D(4544, 2298, -1), Map.Felucca);
WeakEntityCollection.Add(name, board);
LocalizedSign sign;
sign = new LocalizedSign(3025, 1152653); //The port of Zento Parking Area
sign.MoveToWorld(new Point3D(713, 1359, 53), Map.Tokuno);
WeakEntityCollection.Add(name, sign);
sign = new LocalizedSign(3023, 1149821); //Winds Tavern
sign.MoveToWorld(new Point3D(4548, 2300, -6), Map.Trammel);
WeakEntityCollection.Add(name, sign);
sign = new LocalizedSign(3023, 1149821); //Winds Tavern
sign.MoveToWorld(new Point3D(4548, 2300, -6), Map.Felucca);
WeakEntityCollection.Add(name, sign);
sign = new LocalizedSign(3023, 1149820); //General Store
sign.MoveToWorld(new Point3D(4543, 2317, -3), Map.Trammel);
WeakEntityCollection.Add(name, sign);
sign = new LocalizedSign(3023, 1149820); //General Store
sign.MoveToWorld(new Point3D(4543, 2317, -3), Map.Felucca);
WeakEntityCollection.Add(name, sign);
XmlSpawner sp;
string toSpawn = "FishMonger";
//Britain
sp = new XmlSpawner(toSpawn);
sp.SpawnRange = 1;
sp.HomeRange = 5;
sp.MoveToWorld(new Point3D(1482, 1754, -2), Map.Trammel);
sp.Respawn();
WeakEntityCollection.Add(name, sp);
sp = new XmlSpawner(toSpawn);
sp.SpawnRange = 1;
sp.HomeRange = 5;
sp.MoveToWorld(new Point3D(1482, 1754, -2), Map.Felucca);
sp.Respawn();
WeakEntityCollection.Add(name, sp);
//Moonglow
sp = new XmlSpawner(toSpawn);
sp.SpawnRange = 1;
sp.HomeRange = 5;
sp.MoveToWorld(new Point3D(4406, 1049, -2), Map.Trammel);
sp.Respawn();
WeakEntityCollection.Add(name, sp);
sp = new XmlSpawner(toSpawn);
sp.SpawnRange = 1;
sp.HomeRange = 5;
sp.MoveToWorld(new Point3D(4406, 1049, -2), Map.Felucca);
sp.Respawn();
WeakEntityCollection.Add(name, sp);
//Trinsic
sp = new XmlSpawner(toSpawn);
sp.SpawnRange = 1;
sp.HomeRange = 5;
sp.MoveToWorld(new Point3D(2061, 2855, -2), Map.Trammel);
sp.Respawn();
WeakEntityCollection.Add(name, sp);
sp = new XmlSpawner(toSpawn);
sp.SpawnRange = 1;
sp.HomeRange = 5;
sp.MoveToWorld(new Point3D(2061, 2855, -2), Map.Felucca);
sp.Respawn();
WeakEntityCollection.Add(name, sp);
//Vesper
sp = new XmlSpawner(toSpawn);
sp.SpawnRange = 1;
//.........这里部分代码省略.........