示例#1
0
            public static Player GetPlayer(ProfileId position)
            {
                var player = CAPGen.GeneratePlayer(position);

                player.CreatePlayer();
                return(player);
            }
示例#2
0
            public static Player GetRandomPlayer()
            {
                Array     values = Enum.GetValues(typeof(ProfileId));
                ProfileId curr   = (ProfileId)values.GetValue(CAPGen.RAND.Next(0, values.Length));
                var       player = CAPGen.GeneratePlayer(curr);

                if (player == null)
                {
                    return(null);
                }

                player.CreatePlayer();
                return(player);
            }