本文整理汇总了C#中Aura.Channel.World.Quests.Quest.GetList方法的典型用法代码示例。如果您正苦于以下问题:C# Quest.GetList方法的具体用法?C# Quest.GetList怎么用?C# Quest.GetList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Aura.Channel.World.Quests.Quest
的用法示例。
在下文中一共展示了Quest.GetList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: QuestUpdate
/// <summary>
/// Sends QuestUpdate to creature's client.
/// </summary>
/// <param name="creature"></param>
/// <param name="quest"></param>
public static void QuestUpdate(Creature creature, Quest quest)
{
var progress = quest.GetList();
var packet = new Packet(Op.QuestUpdate, creature.EntityId);
packet.PutLong(quest.UniqueId);
packet.PutByte(1);
packet.PutInt(progress.Count);
foreach (var p in progress)
{
packet.PutInt(p.Count);
// [180600, NA187 (25.06.2014)] ?
{
packet.PutFloat(0);
}
packet.PutByte(p.Done);
packet.PutByte(p.Unlocked);
}
packet.PutByte(0);
packet.PutByte(0);
creature.Client.Send(packet);
}
示例2: AddQuestUpdate
public static void AddQuestUpdate(this Packet packet, Quest quest)
{
var progress = quest.GetList();
packet.PutLong(quest.UniqueId);
packet.PutByte(1);
packet.PutInt(progress.Count);
foreach (var p in progress)
{
packet.PutInt(p.Count);
// [180600, NA187 (25.06.2014)] ?
{
packet.PutFloat(0);
}
packet.PutByte(p.Done);
packet.PutByte(p.Unlocked);
}
packet.PutByte(0);
packet.PutByte(0);
}