39 lines
895 B
C#
39 lines
895 B
C#
using ServerCommon;
|
|
using ServerCore; using ServerBase;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GameServer;
|
|
|
|
public class QuestCheatAction : EntityActionBase
|
|
{
|
|
public QuestCheatAction(EntityBase owner) : base(owner)
|
|
{
|
|
}
|
|
|
|
public override void onClear()
|
|
{
|
|
return;
|
|
}
|
|
|
|
public override Task<Result> onInit()
|
|
{
|
|
var result = new Result();
|
|
return Task.FromResult(result);
|
|
}
|
|
|
|
public async Task cheatSendQuestMail(UInt32 questId)
|
|
{
|
|
var player = getOwner() as Player;
|
|
NullReferenceCheckHelper.throwIfNull(player, () => $"player is null !!!");
|
|
var quest_mail_action = player.getEntityAction<QuestMailAction>();
|
|
|
|
await quest_mail_action.sendQuestMailsWithTransaction(new List<UInt32>() { questId });
|
|
|
|
}
|
|
|
|
}
|