Not using optional parameter in Variegator anymore because Windows Phone is a wuss
git-svn-id: file:///srv/devel/repo-conversion/nusu@288 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
63ddef021d
commit
9a73838f6c
|
@ -23,8 +23,6 @@ using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Nuclex.Support.Collections {
|
namespace Nuclex.Support.Collections {
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------- //
|
|
||||||
|
|
||||||
/// <summary>Randomly selects between different options, trying to avoid repetition</summary>
|
/// <summary>Randomly selects between different options, trying to avoid repetition</summary>
|
||||||
/// <typeparam name="TKey">Type of keys through which values can be looked up</typeparam>
|
/// <typeparam name="TKey">Type of keys through which values can be looked up</typeparam>
|
||||||
/// <typeparam name="TValue">Type of values provided by the variegator</typeparam>
|
/// <typeparam name="TValue">Type of values provided by the variegator</typeparam>
|
||||||
|
@ -50,11 +48,14 @@ namespace Nuclex.Support.Collections {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public class Variegator<TKey, TValue> {
|
public class Variegator<TKey, TValue> {
|
||||||
|
|
||||||
|
/// <summary>Initializes a new variegator using the default history length</summary>
|
||||||
|
public Variegator() : this(64) {}
|
||||||
|
|
||||||
/// <summary>Initializes a new variegator</summary>
|
/// <summary>Initializes a new variegator</summary>
|
||||||
/// <param name="historyLength">
|
/// <param name="historyLength">
|
||||||
/// How far into the past the variegator will look to avoid repetition
|
/// How far into the past the variegator will look to avoid repetition
|
||||||
/// </param>
|
/// </param>
|
||||||
public Variegator(int historyLength = 64) {
|
public Variegator(int historyLength) {
|
||||||
this.historyLength = historyLength;
|
this.historyLength = historyLength;
|
||||||
this.history = new TValue[historyLength];
|
this.history = new TValue[historyLength];
|
||||||
this.values = new MultiDictionary<TKey, TValue>();
|
this.values = new MultiDictionary<TKey, TValue>();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user