本文整理汇总了C#中Packets.GetSearchStartOffset方法的典型用法代码示例。如果您正苦于以下问题:C# Packets.GetSearchStartOffset方法的具体用法?C# Packets.GetSearchStartOffset怎么用?C# Packets.GetSearchStartOffset使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Packets
的用法示例。
在下文中一共展示了Packets.GetSearchStartOffset方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnMarketSearch
public void OnMarketSearch(Packets.Client.MarketSearch p)
{
/*
* This function is handeld when the users does a search. The user can maximum show
* 36 items per time. This is same as 3 pages, after those 3 pages it needs to be
* requeried by the database.
*
* p.GetSearchStartOffset is a zero based index, that indicated the amount at which offset
* is. So you can use SEARCHOFFSET * 36 and use that number in your query by using
* LIMIT COMPUTED_OFFSET, 36
*
*/
List<MarketplaceItem> list = MapServer.charDB.SearchMarketItem(MarketSearchOption.ItemType, p.GetSearchStartOffset(), p.GetItemType());
CheckMarketItemValid(list);
Packets.Server.MarketSearchResult p1 = new SagaMap.Packets.Server.MarketSearchResult();
p1.SetUnknown(1);
p1.SetItems(list);
this.netIO.SendPacket(p1, this.SessionID);
}