示例#1
0
文件: ThisGame.cs 项目: janoskaz/game
 public static Item LoadItemFromXml(XmlElement node)
 {
     string name = node.GetAttribute("name");
     Item i = new Item(name);
     string script = node.GetAttribute("script");
     if(script != "")
         i.SetScript(script);
     try
     {
         string symbol = node.GetAttribute("symbol");
         i.SetSymbol(symbol);
     }
     catch
     {}
     return i;
 }