public EllipseShift(int length, EffectOrientation orientation, TimeSpan duration) { Length = length; Orientation = orientation; Duration = duration; _elapsed = TimeSpan.Zero; _lastLengthPosition = 0; }
protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; ele.TryPathTo("Effect/Duration", true, out subEle); subEle.Value = EffectDuration.ToString("G15"); ele.TryPathTo("Effect/Orientation", true, out subEle); subEle.Value = EffectOrientation.ToString(); ele.TryPathTo("AngleThreshold", true, out subEle); subEle.Value = AngleThreshold.ToString("G15"); ele.TryPathTo("PlacementRadius", true, out subEle); subEle.Value = PlacementRadius.ToString("G15"); ele.TryPathTo("SoundLevel", true, out subEle); subEle.Value = SoundLevel.ToString(); ele.TryPathTo("HasDecalData", true, out subEle); subEle.Value = HasDecalData.ToString(); }