public void SetData(VariableSet variables)
        {
            var stream = new MemoryStream();

            variables.ForEach(v => v.Serialize(_formatter, stream));
            if (stream.Length != 0)
            {
                ProceduralDb.SetData(_name, stream.GetBuffer());
            }
        }
        public void GetData(VariableSet variables)
        {
            var data = ProceduralDb.GetData(_name);

            if (data != null)
            {
                var stream = new MemoryStream(data);
                variables.ForEach(v => v.Deserialize(_formatter, stream));
            }
        }
Beispiel #3
0
 public ParamDefList(VariableSet variables) : this()
 {
     variables.ForEach(v => Add(new ParamDef(v.Identifier, v.Type, v.Description)));
 }