private FightResults(FightResultErrorType errorType, FightResultType result, string errorMessage) : this() { ErrorType = errorType; Result = result; ErrorMessage = errorMessage; IsError = true; }
/// <summary> 职业任务战斗结果 </summary> private void TaskResult(TGGSession session, FightResultType result) { if (!session.TaskItems.Any()) { return; } foreach (var item in session.TaskItems) { switch (item.Type) { case TaskStepType.TYPE_KILL: case TaskStepType.NPC_FIGHT_TIMES: { if (item.Target == session.Fight.Rival) { item.Result = result; } break; }; default: { break; } } } dynamic obje = CommonHelper.ReflectionMethods("TGG.Module.Task", "TASK_PUSH"); //调用任务模块 obje.TaskUpdate(session.Player.User.id); // 职业任务每日刷新 }
public static FightResults SetError(FightResultError error, FightResultType result) { return(new FightResults(error, result)); }
private FightResults(FightResultError error, FightResultType result) : this() { Error = error; Result = result; IsError = true; }
private FightResults(int playerScore, int opponentScore, FightResultType result) : this() { PlayerScore = playerScore; OpponentScore = opponentScore; Result = result; }
public static FightResults Error(FightResultErrorType errorType, FightResultType result, string errorMessage) { return(new FightResults(errorType, result, errorMessage)); }
public FightResult(FightOutcome outcome, int rounds, FightResultType resultType) { this.Outcome = outcome; this.Rounds = rounds; this.ResultType = resultType; }