Пример #1
0
		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));
 }
Пример #3
0
		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;
		}
Пример #4
0
 public void ReadXml(XmlElement element)
 {
     Keyword = element.GetStringAttribute("keyword");
 }