Ejemplo n.º 1
0
 public MorePlotTeam()
 {
     UserList = new List<TeamUser>();
     MorePlot = new MorePlot();
     CombatResult = false;
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 public MorePlotTeam()
 {
     UserList     = new List <TeamUser>();
     MorePlot     = new MorePlot();
     CombatResult = false;
 }