private void OnWildEncounter(EncounterResult encounterResult) { _activeEncounterResult = encounterResult; EncounterStarted = true; (_shader as WorldShader).StartEncounter(); (_shader as WorldShader).EncounterAnimationFinished += EncounterFlashAnimationFinished; }
public void ShowResult(EncounterResult result, Action closeCallback) { _closeCallback = closeCallback; headerText.text = result.wasSucceded ? "Success!" : "Failed ..."; descText.text = result.endText; gameObject.SetActive(true); }
public Statistics(DateTimeOffset fightStart, Player logAuthor, EncounterResult encounterResult, EncounterMode encounterMode, Encounter encounter, string logVersion, TimeSpan encounterDuration) { Encounter = encounter; LogVersion = logVersion; EncounterResult = encounterResult; EncounterMode = encounterMode; FightStart = fightStart; LogAuthor = logAuthor; EncounterDuration = encounterDuration; }
internal LogData(FileInfo fileInfo, IEnumerable <LogPlayer> players, string encounterName, EncounterResult encounterResult, DateTimeOffset encounterStartTime, TimeSpan encounterDuration, long parseMilliseconds = -1) { FileInfo = fileInfo; Players = players.ToArray(); EncounterResult = encounterResult; EncounterName = encounterName; EncounterStartTime = encounterStartTime; EncounterDuration = encounterDuration; ParseTime = DateTimeOffset.Now; ParseMilliseconds = parseMilliseconds; }
public TimeSpan GetAverageTimeByResult(EncounterResult result) { if (!LogCountsByResult.TryGetValue(result, out int resultCount)) { resultCount = 1; } if (!TimeSpentByResult.TryGetValue(result, out TimeSpan time)) { time = TimeSpan.Zero; } return(new TimeSpan(time.Ticks / resultCount)); }
public LogStatistics(DateTimeOffset fightStart, Player logAuthor, IEnumerable <PlayerData> playerData, IEnumerable <PhaseStats> phaseStats, SquadDamageData fullFightSquadDamageData, IEnumerable <TargetSquadDamageData> fullFightTargetDamageData, BuffData buffData, EncounterResult encounterResult, string encounterName, string logVersion, IReadOnlyDictionary <string, int> eventCounts, IEnumerable <Agent> agents, IEnumerable <Skill> skills) { EncounterName = encounterName; LogVersion = logVersion; EncounterResult = encounterResult; EventCounts = eventCounts; FightStart = fightStart; LogAuthor = logAuthor; PlayerData = playerData.ToArray(); FullFightSquadDamageData = fullFightSquadDamageData; BuffData = buffData; FullFightBossDamageData = fullFightTargetDamageData.ToArray(); PhaseStats = phaseStats as PhaseStats[] ?? phaseStats.ToArray(); FightTimeMs = PhaseStats.Sum(x => x.PhaseDuration); Agents = agents as Agent[] ?? agents.ToArray(); Skills = skills as Skill[] ?? skills.ToArray(); }
public override void FinishEncounter(EncounterResult result) { Debug.Log("Trap finished"); _controller.ShowResult(result); }
public void ShowResult(EncounterResult result) { resultController.ShowResult(result, CloseEncounter); }
public abstract void FinishEncounter(EncounterResult result);
private void Exit(EncounterResult result) { _result = result; Close(); }
public override void FinishEncounter(EncounterResult result) { }
public override void FinishEncounter(EncounterResult result) { Debug.Log("Gift taken"); _controller.ShowResult(result); }
private void btnYield_Click(object sender, System.EventArgs e) { if ((_result = game.EncounterVerifyYield(this)) != EncounterResult.Continue) Close(); }
private void btnSurrender_Click(object sender, System.EventArgs e) { DisableAuto(); if ((_result = game.EncounterVerifySurrender(this)) != EncounterResult.Continue) Close(); }
public ConstantResultDeterminer(EncounterResult result) { this.result = result; }
public ResultDeterminerResult(EncounterResult encounterResult, long?time) { EncounterResult = encounterResult; Time = time; }
private void ExecuteAction() { if ((_result = game.EncounterExecuteAction(this)) == EncounterResult.Continue) { UpdateButtons(); UpdateShipStats(); lblEncounter.Text = game.EncounterText; lblAction.Text = game.EncounterAction; if (game.EncounterContinueFleeing || game.EncounterContinueAttacking) tmrTick.Start(); } else Close(); }