//!--获取当前阶段配置 public SXML CurrentStageConf() { SXML idXML = PetXML.GetNode("pet", "id==" + Tpid); SXML stageXML = idXML?.GetNode("stage", "stage==" + Stage); return(stageXML); }
//!--获取下一阶段配置 public SXML NextStageConf() { SXML idXML = PetXML.GetNode("pet", "id==" + Tpid); SXML nextStageXML = idXML.GetNode("stage", "stage==" + (Stage + 1)); if (nextStageXML == null) { return(null); } return(nextStageXML); }
//!--获取升级道具的配置id public uint GetLevelItemTpid() { SXML levelitm = PetXML.GetNode("level_item"); return(levelitm.getUint("item_id")); }
//!--获取进阶道具的配置id public uint GetStageItemTpid() { SXML stageitm = PetXML.GetNode("stage_item"); return(stageitm.getUint("item_id")); }
//!--获取喂养道具的配置id public uint GetFeedItemTpid() { SXML feeditm = PetXML.GetNode("feed_item"); return(feeditm.getUint("item_id")); }