]> git.deb.at Git - rhonda/impostor.git/commitdiff
Expose IsCancelled to IPlayerChatEvent
authorjs6pak <kubastaron@hotmail.com>
Sun, 7 Mar 2021 15:49:57 +0000 (16:49 +0100)
committerjs6pak <kubastaron@hotmail.com>
Sun, 7 Mar 2021 15:49:57 +0000 (16:49 +0100)
src/Impostor.Api/Events/Game/Player/IPlayerChatEvent.cs
src/Impostor.Server/Events/Game/Player/PlayerChatEvent.cs

index 52efe9653524eb7b2cef31bdc54a706fe630410c..914701025c264d1005c93ff46756df1785faae61 100644 (file)
@@ -1,6 +1,6 @@
 namespace Impostor.Api.Events.Player
 {
-    public interface IPlayerChatEvent : IPlayerEvent
+    public interface IPlayerChatEvent : IPlayerEvent, IEventCancelable
     {
         /// <summary>
         ///     Gets the message sent by the player.
index 32c156145b78d814d911c2c9aa88bc3fccfe112b..34ec95ed2b53588599dedf1ea6bd89f4cf72ed8b 100644 (file)
@@ -1,12 +1,11 @@
-using Impostor.Api.Events;
-using Impostor.Api.Events.Player;
+using Impostor.Api.Events.Player;
 using Impostor.Api.Games;
 using Impostor.Api.Net;
 using Impostor.Api.Net.Inner.Objects;
 
 namespace Impostor.Server.Events.Player
 {
-    public class PlayerChatEvent : IPlayerChatEvent, IEventCancelable
+    public class PlayerChatEvent : IPlayerChatEvent
     {
         public PlayerChatEvent(IGame game, IClientPlayer clientPlayer, IInnerPlayerControl playerControl, string message)
         {