Esempio n. 1
0
        /// <inheritdoc />
        public override async Task HandleAsync()
        {
            await PlayerRegistry.SetPlayerDefeated(GameEvent.PlayerName);

            await Chat.AddMessageAsync($"Player '{GameEvent.DefeatingPlayerName}' has defeated player '{GameEvent.PlayerName}'.");

            Logger.LogInformation("Player {playerName} has been set as defeated.", GameEvent.PlayerName);
        }
Esempio n. 2
0
        public override async Task HandleAsync()
        {
            await PlayerRegistry.AddPlayerAsync(GameEvent.PlayerName, GameEvent.Peer);

            await Chat.AddMessageAsync($"Player '{GameEvent.PlayerName}' has entered the game.");

            Logger.LogInformation("Player {playerName} added from {peer}.", GameEvent.PlayerName, GameEvent.Peer);
        }
Esempio n. 3
0
        public override async Task HandleAsync()
        {
            await Chat.AddMessageAsync(GameEvent.Message, GameEvent.PlayerName);

            Logger.LogTrace("Player {playerName} added sent message to chat: {message}.", GameEvent.PlayerName, GameEvent.Message);
        }