示例#1
0
            private static IEnumerable <Tuple <short, int, short, short> > generateDrop(Map.Map map, short vnum, int amountofdrop, int amount)
            {
                List <Tuple <short, int, short, short> > dropParameters = new List <Tuple <short, int, short, short> >();

                for (int i = 0; i < amountofdrop; i++)
                {
                    MapCell cell = map.GetRandomPosition();
                    dropParameters.Add(new Tuple <short, int, short, short>(vnum, amount, cell.X, cell.Y));
                }
                return(dropParameters);
            }