本文整理匯總了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");
}
}