예제 #1
0
        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());
            }
        }
예제 #2
0
        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));
            }
        }
예제 #3
0
 public ParamDefList(VariableSet variables) : this()
 {
     variables.ForEach(v => Add(new ParamDef(v.Identifier, v.Type, v.Description)));
 }