Beispiel #1
0
        internal void SetData(NanoXMLNode sn)
        {
            Enabled = bool.Parse(sn.GetAttribute("Enabled").Value);
            var pattern = sn.GetAttribute("Pattern").Value;

            IsScanPattern = pattern.ToLower().Equals("scan");
            if (!IsScanPattern)
            {
                IntPattern = int.Parse(pattern);
            }
        }
Beispiel #2
0
        internal void SetData(NanoXMLNode data)
        {
            if (dataSet)
            {
                throw new InvalidOperationException("Data cannot be set twice!");
            }
            Enabled = bool.Parse(data.GetAttribute("Enabled").Value);
            var pattern = data.GetAttribute("Pattern").Value;

            IsScanPattern = pattern?.ToLower().Equals("scan") ?? false;
            if (!IsScanPattern)
            {
                IntPattern = int.Parse(pattern);
            }
            dataSet = true;
        }
Beispiel #3
0
 internal void SetData(NanoXMLNode data)
 {
     IsElsControlled = bool.Parse(data.GetAttribute("IsElsControlled").Value);
     AllowEnvLight   = bool.Parse(data.GetAttribute("AllowEnvLight").Value);
     Color           = data.GetAttribute("Color").Value;
     OffsetX         = float.Parse(data.GetAttribute("OffsetX").Value);
     OffsetY         = float.Parse(data.GetAttribute("OffsetY").Value);
     OffsetZ         = float.Parse(data.GetAttribute("OffsetZ").Value);
 }
Beispiel #4
0
 internal void SetData(NanoXMLNode data)
 {
     AudioString = data.GetAttribute("AudioString")?.Value;
     AllowUse    = bool.Parse(data.GetAttribute("AllowUse")?.Value ?? "false");
     SoundSet    = data.GetAttribute("SoundSet")?.Value;
 }
Beispiel #5
0
 internal void SetData(NanoXMLNode data)
 {
     AudioString     = data.GetAttribute("AudioString")?.Value;
     InterruptsSiren = bool.Parse(data.GetAttribute("InterruptsSiren")?.Value ?? "false");
     SoundSet        = data.GetAttribute("SoundSet")?.Value;
 }
Beispiel #6
0
 internal void SetData(NanoXMLNode data)
 {
     DfltPattern = int.Parse(data.GetAttribute("DfltPattern").Value);
     ColorL      = data.GetAttribute("ColorL").Value;
     ColorR      = data.GetAttribute("ColorR").Value;
 }