本文整理汇总了C#中Server.Items.TreasureMap.ClearPins方法的典型用法代码示例。如果您正苦于以下问题:C# TreasureMap.ClearPins方法的具体用法?C# TreasureMap.ClearPins怎么用?C# TreasureMap.ClearPins使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.Items.TreasureMap
的用法示例。
在下文中一共展示了TreasureMap.ClearPins方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DropTMap
public void DropTMap(Mobile from, TMapBookEntry e, int index)
{
if (m_DefaultIndex == index)
{
m_DefaultIndex = -1;
}
m_Entries.RemoveAt(index);
var tmap = new TreasureMap(e.Level, e.Map) {
Decoder = e.Decoder,
ChestLocation = e.Location,
ChestMap = e.Map,
Bounds = e.Bounds
};
tmap.ClearPins();
tmap.AddWorldPin(e.Location.X, e.Location.Y);
from.AddToBackpack(tmap);
from.SendMessage("You have removed the Treasure Map");
}
示例2: DropTMap
public void DropTMap(Mobile from, DaviesLockerEntry e, int index)
{
if (m_DefaultIndex == index)
m_DefaultIndex = -1;
m_Entries.RemoveAt(index);
if (e.type == 1)
{
TreasureMap tmap = new TreasureMap(e.Level, e.Map)
{
Decoder = e.Decoder,
ChestLocation = e.Location2d,
ChestMap = e.Map,
Bounds = e.Bounds
};
tmap.ClearPins();
tmap.AddWorldPin(e.Location2d.X, e.Location2d.Y);
from.AddToBackpack(tmap);
from.SendMessage("You have removed the Treasure Map");
}
else if (e.type == 2)
{
SOS sos = new SOS(e.Map, e.Level) {TargetLocation = e.Location3d};
from.AddToBackpack(sos);
from.SendMessage("You have removed the S.O.S.");
}
else
{
MessageInABottle mib = new MessageInABottle(e.Map, e.Level);
from.AddToBackpack(mib);
from.SendMessage("You have removed the message in a bottle");
}
}