本文整理匯總了C#中Server.Engines.Help.PageEntry.Stop方法的典型用法代碼示例。如果您正苦於以下問題:C# PageEntry.Stop方法的具體用法?C# PageEntry.Stop怎麽用?C# PageEntry.Stop使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Server.Engines.Help.PageEntry
的用法示例。
在下文中一共展示了PageEntry.Stop方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: OnLoad
private static void OnLoad()
{
Persistence.Deserialize(
_FilePath,
reader =>
{
var version = reader.ReadInt();
var count = reader.ReadInt();
switch (version)
{
case 0:
{
for (var i = 0; i < count; ++i)
{
var sender = reader.ReadMobile();
var message = reader.ReadString();
var type = (PageType)reader.ReadInt();
PageEntry pe = new PageEntry(sender, message, type)
{
Handler = reader.ReadMobile(),
Sent = reader.ReadDateTime(),
PageLocation = reader.ReadPoint3D(),
PageMap = reader.ReadMap()
};
pe.Stop();
PageQueue.Enqueue(pe);
}
}
break;
}
});
}
示例2: Remove
public static void Remove( PageEntry e )
{
if ( e == null )
return;
e.Stop();
m_List.Remove( e );
m_KeyedBySender.Remove( e.Sender );
if ( e.Handler != null )
m_KeyedByHandler.Remove( e.Handler );
}
示例3: Remove
public static void Remove( PageEntry e )
{
if ( e == null )
return;
e.Stop();
m_List.Remove( e );
m_KeyedBySender.Remove( e.Sender );
if ( e.Handler != null )
m_KeyedByHandler.Remove( e.Handler );
if ( m_List.Count == 0 )
{
foreach ( GameClient ns in GameServer.Instance.Clients )
{
Mobile m = ns.Mobile;
if ( m != null && m.AccessLevel >= AccessLevel.Counselor )
m.CloseGump( typeof( PagePendingGump ) );
}
}
}