/// <summary> /// Create a new generrator parameters object from the stream text. /// </summary> /// <param name="genDataDef">The definition of the generator data.</param> /// <param name="stream">The stream data being loaded.</param> public GenParameters(GenDataDef genDataDef, Stream stream) : base(genDataDef) { Scan = new ParameterScanner(stream); Parse(); Changed = false; }
/// <summary> /// Create a new generator parameters object from the given text. /// </summary> /// <param name="genDataDef">The definition of the generator data.</param> /// <param name="text">The text data being loaded.</param> public GenParameters(GenDataDef genDataDef, string text) : base(genDataDef) { Scan = new ParameterScanner(text); Parse(); }