namespace XGame.Editor.Build
{
    interface IBuildCommand
    {
        //void Start();
        //void Completed(BuildErrorCode code);
    }
    /// <summary>
    /// Cmd同步执行接口
    /// </summary>
    interface ICommandExecuter
    {
        /// <summary>
        /// 执行成功返回BuildErrorCode.CmdCompleted
        /// 失败则自行新增BuildErrorCode
        /// </summary>
        /// <returns></returns>
        BuildErrorCode Execute();
    }
    /// <summary>
    /// Cmd异步执行接口
    /// </summary>
    interface ICommandExecuterAsync
    {
        /// <summary>
        /// 结束需要主动调用Completed
        /// </summary>
        void Execute();
    }
}
