CTT/Server/Hotfix/Game/Helper/TaskHelper.cs

16 lines
381 B
C#

namespace ET
{
public static class TaskHelper
{
public static async ETTask UpdateTask(Unit unit, int itemId)
{
await Game.EventSystem.Publish(new EventType.UpdateTaskState
{
unit = unit,
type = TaskTargetType.CollectionTask,
value = itemId
});
}
}
}