public static Server CreateFromXml (XmlElement element) { var type = element.GetStringAttribute ("type") ?? JabbRServer.JabbRTypeId; switch (type) { case JabbRServer.JabbRTypeId: return new JabbRServer (); default: return null; } }
public static SpawnItemAttachment Load(XmlElement elem) { return new SpawnItemAttachment(elem.Name, elem.GetStringAttribute(NameAttribName)); }
public virtual void ReadXml (XmlElement element) { this.Id = element.GetStringAttribute ("id") ?? Guid.NewGuid ().ToString (); this.Name = element.GetAttribute ("name"); this.ConnectOnStartup = element.GetBoolAttribute ("connectOnStartup") ?? true; }
public void ReadXml(XmlElement element) { Keyword = element.GetStringAttribute("keyword"); }