Пример #1
0
 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;
 }
Пример #2
0
        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));
            }
        }
Пример #3
0
 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();
 }