Пример #1
0
        public ChessGame()
        {
            Id      = "chess";
            Details = new GameDetails
            {
                Name            = "Chess",
                Icon            = "♟️",
                Summary         = "A classic game of immense strategy.",
                RequiredPlayers = 2,
                PlayerLimit     = 2
            };

            Options = new List <GameOption>
            {
                GameOption.Create(ChessConfig.RotateBoard, "Rotate board on each turn", true),
                GameOption.Create(ChessConfig.StartingPlayer, "Starting player", ChessStartMode.Random),
                GameOption.Create(ChessConfig.AllowEnPassant, "Allow 'En Passant'", false),
                GameOption.Create(ChessConfig.PieceFormat, "Piece Format", ChessIconFormat.Text)
            };
        }
Пример #2
0
        public TriviaGame()
        {
            Id      = "trivia";
            Details = new GameDetails
            {
                Name            = "Trivia",
                Icon            = "📰",
                Summary         = "Answer questions against the clock!",
                PlayerLimit     = 16,
                RequiredPlayers = 1,
                CanSpectate     = true
            };

            Options = new List <GameOption>
            {
                GameOption.Create("topics", "Topics", TriviaTopic.Any, "Determines the topics to filter for (only when **Use OpenTDB** is disabled)."),
                GameOption.Create("difficulty", "Difficulty", TriviaDifficulty.Any, "Determines the difficulty range to filter each question for."),
                GameOption.Create("questioncount", "Question Count", 5, "Represents the total amount of questions to play in this session."),
                GameOption.Create("questionduration", "Question Duration", 15d, "Determines how long a player has to answer each question."),
                GameOption.Create(TriviaConfig.UseOpenTDB, "Use OpenTDB", true, "This toggles the usage of the OpenTDB API, which allows for a wider range of unique questions. Disable if you wish to only answer custom-made questions.")
            };
        }