Skip to content

Commit

Permalink
feat: more records
Browse files Browse the repository at this point in the history
  • Loading branch information
shoter committed Nov 6, 2023
1 parent 23e61fe commit 8132be3
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions OpenTTDAdminPort/Events/AdminChatMessageEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,12 @@

namespace OpenTTDAdminPort.Events
{
public class AdminChatMessageEvent : IAdminEvent
public record AdminChatMessageEvent(
Player Player,
ChatDestination ChatDestination,
NetworkAction NetworkAction,
string Message) : IAdminEvent
{
public AdminEventType EventType => AdminEventType.ChatMessageReceived;

public Player Player { get; }

public string Message { get; }

public ChatDestination ChatDestination { get; }

public NetworkAction NetworkAction { get; }

public AdminChatMessageEvent(Player player, ChatDestination chatDestination, NetworkAction action, string msg)
{
this.Player = player;
this.Message = msg;
this.ChatDestination = chatDestination;
this.NetworkAction = action;
}
}
}

0 comments on commit 8132be3

Please sign in to comment.