示例#1
0
文件: Target.cs 项目: visose/Robots
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("IsCartesian", isCartesian);
     return base.Write(writer);
 }
示例#2
0
 //write and read allow the settings to persist through document save and component copy/paste.
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("createNewSpreadsheets", createNewSpreadsheets);
     return base.Write(writer);
 }
示例#3
0
        public override bool Write(GH_IWriter writer)
        {
            if (m_settings != null && m_settings.Length > 0)
                    {
                        writer.SetInt32("StringCount", m_settings.Length);
                        for (int i = 0; i < m_settings.Length; i++)
                        {
                            writer.SetString("String", i, m_settings[i]);
                        }
                    }

                    return base.Write(writer);
        }
示例#4
0
 public override bool Write(GH_IWriter writer)
 {
     try
     {
         GH_IWriter writer2 = writer.CreateChunk("Hoopsnake_Data");
         writer2.SetInt32("dataLimit", dataLimit);
         writer2.SetBoolean("resetCounter", resetCounterOnLoop);
         writer2.SetBoolean("updateView", updateView);
         writer2.SetBoolean("autoUpdate", autoUpdate);
         writer2.SetInt32("delay", delay);
     }
     catch {}
     return base.Write(writer);
 }