Exemplo n.º 1
0
 internal override void Save(MachineInfo machineInfo)
 {
     machineInfo.MachineData.Write("axis-" + Name + "-type", Type.ToString());
     machineInfo.MachineData.Write("axis-" + Name + "-init", InitialisationCode);
     machineInfo.MachineData.Write("axis-" + Name + "-update", UpdateCode);
     machineInfo.MachineData.Write("axis-" + Name + "-global", GlobalScope);
     if (LinkedAxes.Count > 0)
     {
         machineInfo.MachineData.Write("axis-" + Name + "-links", LinkedAxes.ToArray <string>());
     }
 }
Exemplo n.º 2
0
        internal override void Save()
        {
            spaar.ModLoader.Configuration.SetString("axis-" + Name + "-type", Type.ToString());
            spaar.ModLoader.Configuration.SetString("axis-" + Name + "-init", InitialisationCode);
            spaar.ModLoader.Configuration.SetString("axis-" + Name + "-update", UpdateCode);
            spaar.ModLoader.Configuration.SetBool("axis-" + Name + "-global", GlobalScope);
            var list = LinkedAxes.ToArray <string>();

            for (int i = 0; i < list.Length; i++)
            {
                spaar.ModLoader.Configuration.SetString("axis-" + Name + "-link" + i, list[i]);
            }
        }