コード例 #1
0
    public override string RenderValue()
    {
        return("");

        var clients = Markets.GetAudienceSize(Q, SelectedNiche);

        var flow = Marketing.GetClientFlow(Q, SelectedNiche);

        return($"{Format.Minify(clients)} users\n\n+{Format.Minify(flow)} this month");


        var potential = Markets.GetMarketPotential(Q, SelectedNiche);

        if (potential == 0)
        {
            return("???");
        }

        var niche = Markets.GetNiche(Q, SelectedNiche);

        var min0 = Markets.GetMarketPotentialMin(niche);
        var max0 = Markets.GetMarketPotentialMax(niche);

        var min = Math.Min(min0, max0);
        var max = Math.Max(min0, max0);

        return(Format.Money(min) + " ... " + Format.Money(max));
    }
コード例 #2
0
    public override string RenderValue()
    {
        var demand   = Marketing.GetClientFlow(Q, SelectedNiche);
        var audience = Markets.GetAudienceSize(Q, SelectedNiche);

        return($"{Format.Minify(audience)} users"); // (+{Format.Minify(demand)} weekly)";
    }
コード例 #3
0
    internal void SetEntity(NicheType nicheType)
    {
        var niche  = Markets.GetNiche(Q, nicheType);
        var rating = Markets.GetMarketRating(niche);

        var share = Companies.GetControlInMarket(MyCompany, nicheType, Q);

        var marketSize = Markets.GetMarketSize(Q, nicheType);
        var audience   = Markets.GetAudienceSize(Q, nicheType);



        var hasCompany = Companies.HasCompanyOnMarket(MyCompany, nicheType, Q);

        //ShareSize.text = Format.MinifyMoney(marketSize);
        ShareSize.text  = Format.MinifyToInteger(audience) + "\nusers";
        ShareSize.color = Visuals.GetColorFromString(HasCompany ? Colors.COLOR_CONTROL : Colors.COLOR_CONTROL_NO);

        var phase = Markets.GetMarketState(niche).ToString();

        if (!ShowMarketStateOnlyByColor)
        {
            MarketState.text = phase;
        }

        var phaseColor = Visuals.GetGradientColor(0, 5f, rating);

        MarketState.color = phaseColor;

        var nicheName = Enums.GetFormattedNicheName(nicheType);

        NicheName.text = nicheName;

        LinkToNiche.SetNiche(nicheType);

        //var control = Companies.GetControlInMarket(MyCompany, nicheType, GameContext);
        //ControlInMarket.text = control + "%";

        RenderHint(nicheName, marketSize, share, phase, phaseColor, nicheType);
    }