public override bool Write(GH_IO.Serialization.GH_IWriter writer)
        {
            writer.SetDouble("MultiplierFactor", Factor);
            writer.SetInt32("TargetCount", _targetIds.Count);
            for (int i = 0; i < _targetIds.Count; i++)
            {
                writer.SetGuid("TargetID", i, _targetIds[i]);
            }

            return(base.Write(writer));
        }
Exemplo n.º 2
0
 //This region handles serialisation and deserialisation, meaning that
 // component states will be remembered when reopening GH script
 public override bool Write(GH_IO.Serialization.GH_IWriter writer)
 {
     //writer.SetString("File", (string)file);
     writer.SetGuid("Guid", (Guid)panelGUID);
     return(base.Write(writer));
 }