Beispiel #1
0
 public string GetKey(IXMLNode n)
 {
     return n.GetAttribute ("ikey");
 }
Beispiel #2
0
        public Hashtable BuildHashtable(IXMLNode n)
        {
            Hashtable retval = new Hashtable ();
            retval ["ikey"] = n.GetAttribute ("ikey");

            foreach (IXMLNode nn in n.Children) {
                switch (nn.Name) {
                case "location":
                    break;
                case "mastery_level":
                    break;
                case "rewards":
                    retval ["rewards"] = CrmParser_.ParseModifierList (nn);
                    break;
                case "costs":
                    retval ["costs"] = CrmParser_.ParseCostList (nn);
                    break;
                case "requires":
                    retval ["requires"] = CrmParser_.ParseRequirementList (nn);
                    break;
                case "tags":
                    retval ["tags"] = CrmParser_.ParseChildrenForAttribute (nn, "value");
                    break;
                case "properties":
                    retval ["properties"] = CrmParser_.ParsePropertiesList (nn);
                    break;
                default:
                    retval [nn.Name] = nn.Text;
                    break;
                }
            }

            return retval;
        }
Beispiel #3
0
 public string GetKey(IXMLNode n)
 {
     string key = n.GetAttribute ("ikey");
     if (key != null)
         return key;
     return n.GetAttribute ("name");
 }
Beispiel #4
0
 public virtual string GetKey(IXMLNode n)
 {
     return n.GetAttribute ("id");
 }
Beispiel #5
0
 public string GetKey(IXMLNode n)
 {
     return n.GetAttribute ("product_identifier");
 }
Beispiel #6
0
        protected void OnUpdate(IXMLNode update)
        {
            //Since you can get change events from login calls, when the Properties object is not yet setup we need to be careful here:
            if (! HasDataFromServer)
                return;

            //var d = event['data'] as Hashtable;

            var v = GetProperty (update.GetAttribute ("ikey")) as Hashtable;
            if (v != null) {
                v ["value"] = update.GetAttribute ("value");
            }
        }