Example #1
0
    public SessionData()
    {
        //DataStore.InitData() has already been called at this point to load data
        difficulty               = Difficulty.NotSet;
        threatLevel              = addtlThreat = 0;
        allyRules                = AllyRules.Normal;
        optionalDeployment       = YesNo.No;
        allyThreatCost           = YesNo.No;
        selectedMissionExpansion = Expansion.Core;
        selectedMissionID        = "core1";
        selectedMissionName      = DataStore.missionCards["Core"][0].name;
        includeImperials         = true;
        includeMercs             = true;

        selectedDeploymentCards = new DeploymentCards[5];
        for (int i = 0; i < 5; i++)
        {
            selectedDeploymentCards[i] = new DeploymentCards();
        }
        selectedAlly = null;

        //ignore "Other" expansion enemy groups by default
        selectedDeploymentCards[3].cards.AddRange(DataStore.deploymentCards.cards.Where(x => x.expansion == "Other"));
        gameVars = new GameVars();
    }
Example #2
0
    /// <summary>
    /// Deprecated
    /// </summary>
    public string ToggleRules()
    {
        if (allyRules == AllyRules.NotSet)
        {
            allyRules = AllyRules.Normal;
        }
        else if (allyRules == AllyRules.Normal)
        {
            allyRules = AllyRules.Lothal;
        }
        else
        {
            allyRules = AllyRules.Normal;
        }

        return(allyRules == AllyRules.Normal ? DataStore.uiLanguage.uiSetup.normal : "lothal");
    }