Beispiel #1
0
 /// <summary>
 /// Default settings
 /// </summary>
 public GameSettings()
 {
     type             = Enums.GameType.Stock;
     variant          = Enums.GameVariant.None;
     timeLimit        = Mathf.Infinity;
     killLimit        = Mathf.Infinity;
     stockLimit       = DEFAULT_STOCK;
     arrowLimit       = Mathf.Infinity;
     damageModifier   = 1f;
     gravityModifier  = 1f;
     speedModifier    = 1f;
     tokenSpawnFreq   = 5f;
     playerSpawnFreq  = 3f;
     targetsInLevel   = 0;
     timeLimitEnabled = false;
     enabledTokens    = new Dictionary <Enums.Tokens, Enums.Frequency>();
     for (int i = 0; i < (int)Enums.Tokens.NumTypes; i++)
     {
         enabledTokens.Add((Enums.Tokens)i, Enums.Frequency.Abundant);
     }
     defaultTokens = new List <Enums.Tokens>();
 }
Beispiel #2
0
    /// <summary>
    /// Default settings
    /// </summary>
    public GameSettings()
    {
        type = Enums.GameType.Stock;
		variant = Enums.GameVariant.None;
        timeLimit = Mathf.Infinity;
        killLimit = Mathf.Infinity;
        stockLimit = DEFAULT_STOCK;
        arrowLimit = Mathf.Infinity;
        damageModifier = 1f;
        gravityModifier = 1f;
        speedModifier = 1f;
        tokenSpawnFreq = 5f;
        playerSpawnFreq = 3f;
        targetsInLevel = 0;
        timeLimitEnabled = false;
        enabledTokens = new Dictionary<Enums.Tokens, Enums.Frequency>();
        for(int i = 0; i < (int)Enums.Tokens.NumTypes; i++)
        {
            enabledTokens.Add((Enums.Tokens)i, Enums.Frequency.Abundant);
        }
        defaultTokens = new List<Enums.Tokens>();
}