public MorePlotTeam() { UserList = new List<TeamUser>(); MorePlot = new MorePlot(); CombatResult = false; }
private MorePlot GetItem(int plotId) { var plotInfo = new ShareCacheStruct<PlotInfo>().FindKey(plotId); MorePlot morePlot = new MorePlot { PlotID = plotId, PlotName = plotInfo.PlotName, Experience = plotInfo.Experience, ExpNum = plotInfo.ExpNum, ObtainNum = plotInfo.ObtainNum }; if (plotInfo == null || string.IsNullOrEmpty(plotInfo.ItemRank)) { return morePlot; } string[] itemRandArray = plotInfo.ItemRank.Split(','); if (itemRandArray.Length > 0) { string[] itemArray = itemRandArray[0].Split('='); if (itemArray.Length == 2) { var itemInfo = new ShareCacheStruct<ItemBaseInfo>().FindKey(itemArray[0]); morePlot.ItemId = itemInfo.ItemID; morePlot.ItemName = itemInfo.ItemName; morePlot.ItemNum = Convert.ToInt32(itemArray[1]); } } return morePlot; }
public MorePlotTeam() { UserList = new List <TeamUser>(); MorePlot = new MorePlot(); CombatResult = false; }