초기커밋
This commit is contained in:
38
GameServer/Contents/Quest/Action/QuestCheatAction.cs
Normal file
38
GameServer/Contents/Quest/Action/QuestCheatAction.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
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 });
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user