public ActualLawViewModel(CountryPolicy policy) { CurrencySymbol = Persistent.Countries.GetCountryCurrency(policy.CountryID).Symbol; CitizenFee = policy.CitizenFee; CitizenCompanyCost = policy.CitizenCompanyCost; OrganisationCompanyCost = policy.OrganisationCompanyCost; NormalJobMarketFee = policy.NormalJobMarketFee; ContractJobMarketFee = policy.ContractJobMarketFee; MinimumContractLength = policy.MinimumContractLength; MaximumContractLength = policy.MaximumContractLength; NormalCongressVotingWinPercentage = (double)policy.NormalCongressVotingWinPercentage; PartyFoundingFee = policy.PartyFoundingFee; PartyPresidentCadenceLength = policy.PartyPresidentCadenceLength; CongressCadenceLength = policy.CongressCadenceLength; CongressVotingLength = policy.CongressVotingLength; PresidentCadenceLength = policy.PresidentCadenceLength; OrganisationCreateCost = policy.OrganisationCreateCost; MarketOfferCost = policy.MarketOfferCost; NewspaperCreateCost = policy.NewspaperCreateCost; ArticleTax = (double)policy.ArticleTax; MonetaryTaxRate = (double)policy.MonetaryTaxRate; MinimumMonetaryTax = (double)policy.MinimumMonetaryTax; TreasuryLawAllowHolder = (LawAllowHolderEnum)policy.TreasuryVisibilityLawAllowHolderID; NationalCompanyBuildLawAllowHolder = (LawAllowHolderEnum)policy.CountryCompanyBuildLawAllowHolder; MinimalWage = policy.MinimalWage; }
public static string ToHumanReadableString(this LawAllowHolderEnum holder) { switch (holder) { case LawAllowHolderEnum.Congress: return("congress"); case LawAllowHolderEnum.President: return("president"); case LawAllowHolderEnum.PresidentAndCongress: return("president and congress"); } throw new NotImplementedException(); }
public ViewChangeTreasureLawHolderViewModel(Entities.CongressVoting voting, bool isPlayerCongressman, bool canVote) : base(voting, isPlayerCongressman, canVote) { LawHolder = (LawAllowHolderEnum)Enum.Parse(typeof(LawAllowHolderEnum), voting.Argument1); }
public ChangeTreasureLawHolderVotingParameters(LawAllowHolderEnum lawHolder) { this.LawHolder = lawHolder; }
public ChangeCompanyCreationLawHolderVotingParameters(LawAllowHolderEnum lawHolder) { LawHolder = lawHolder; }