Ejemplo n.º 1
0
    int TimeRemaining()
    {
        var task = Cooldowns.GetTask(Q, GetCompanyTask());

        if (task == null)
        {
            return(0);
        }

        return(task.EndTime - CurrentIntDate);
    }
Ejemplo n.º 2
0
    public override string RenderValue()
    {
        var task = Cooldowns.GetTask(Q, new CompanyTaskUpgradeCulture(MyCompany.company.Id));

        if (task == null)
        {
            //NextTweakLabel.SetActive(false);
            return("");
        }

        NextTweakLabel.SetActive(true);

        var days = task.EndTime - CurrentIntDate;

        if (days > 0)
        {
            return($"Corporate culture\n(next change in {days} days)");
        }

        return($"Corporate culture");
        //return $"{days} days";
    }
 public override TimedActionComponent GetTask()
 {
     return(Cooldowns.GetTask(Q, new CompanyTaskExploreCompany(SelectedCompany.company.Id)));
 }
Ejemplo n.º 4
0
    public bool HasActiveTimer()
    {
        var t = GetCompanyTask();

        return(Cooldowns.GetTask(Q, t) != null);
    }
Ejemplo n.º 5
0
 public override TimedActionComponent GetTask()
 {
     return(Cooldowns.GetTask(Q, new CompanyTaskExploreMarket(SelectedNiche)));
 }
Ejemplo n.º 6
0
 public static TimedActionComponent GetCorporateCultureCooldown(GameEntity company, GameContext gameContext)
 {
     return(Cooldowns.GetTask(gameContext, new CompanyTaskUpgradeCulture(company.company.Id)));
 }