Esempio n. 1
0
    public Task <BotDetailedViewModel> method_3(int int_0, bool bool_0)
    {
        MapViewData          spacemap             = GClass891.smethod_24(this.Context, bool_0 | this.Context.Map.MapId != int_0);
        BotSummaryViewModel  summary              = new BotSummaryViewModel(this.Context.Hero, this.Context.Stats, this.Context.Stats.RunTime);
        BotDetailedViewModel botDetailedViewModel = new BotDetailedViewModel();

        botDetailedViewModel.Spacemap = spacemap;
        GClass890 context = this.Context;
        string    botId;

        if (context == null)
        {
            botId = null;
        }
        else
        {
            AccountSettings account = context.Account;
            botId = ((account != null) ? account.BotId : null);
        }
        botDetailedViewModel.BotId   = botId;
        botDetailedViewModel.Summary = summary;
        return(Task.FromResult <BotDetailedViewModel>(botDetailedViewModel));
    }