public ExpeditionCompletion(FleetId fleetId, string expeditionName, ExpeditionResult result, Materials materialsAcquired, ItemRecord rewardItem1, ItemRecord rewardItem2) { FleetId = fleetId; ExpeditionName = expeditionName; Result = result; MaterialsAcquired = materialsAcquired; RewardItem1 = rewardItem1; RewardItem2 = rewardItem2; }
static string GetStringFromExpeditionResult(ExpeditionResult rpResult) { switch (rpResult) { case ExpeditionResult.Failure: return(StringResources.Instance.Main.Result_Failure); case ExpeditionResult.Success: return(StringResources.Instance.Main.Result_Success); case ExpeditionResult.GreatSuccess: return(StringResources.Instance.Main.Result_GreatSuccess); default: throw new InvalidEnumArgumentException(nameof(rpResult), (int)rpResult, typeof(ExpeditionResult)); } }
public void OnExpeditionComplete(HomeportFleet fleet, ExpeditionInfo expedition, ExpeditionResult result) { foreach (var c in Counters) { if (c is ExpeditionCounter ec) { ec.OnExpeditionComplete(StatePersist, fleet, expedition, result); } } UpdateProgress(); }