/// <summary> /// Creates a hover-over instruction. /// </summary> /// <param name="xn">The XML repersentation of the instruction to be checked</param> /// <param name="con">The current context object</param> static HoverOver CreateHoverOver(XmlNode xn, Context con) { HoverOver hover = new HoverOver(); hover.Path = XmlFiler.getAttribute(xn, "path"); Logger.getOnly().isNotNull(hover.Path, "Hover-over instruction must have a path."); Logger.getOnly().isTrue(hover.Path != "", "Hover-over instruction must have a non-empty path."); string rest = XmlFiler.getAttribute(xn, "wait"); if (rest != null) { hover.Rest = Convert.ToInt32(rest); } AddInstruction(xn, hover, con); return(hover); }
/// <summary> /// Creates a hover-over instruction. /// </summary> /// <param name="xn">The XML repersentation of the instruction to be checked</param> /// <param name="con">The current context object</param> static HoverOver CreateHoverOver(XmlNode xn, Context con) { HoverOver hover = new HoverOver(); hover.Path = XmlFiler.getAttribute(xn, "path"); Logger.getOnly().isNotNull(hover.Path, "Hover-over instruction must have a path."); Logger.getOnly().isTrue(hover.Path != "", "Hover-over instruction must have a non-empty path."); string rest = XmlFiler.getAttribute(xn, "wait"); if (rest != null) hover.Rest = Convert.ToInt32(rest); AddInstruction(xn, hover, con); return hover; }