Skip to content

Commit

Permalink
feat: rcon as record (#24)
Browse files Browse the repository at this point in the history
* feat: more records

* fix: Build Error

* feat: Rcon msg as record

---------

Co-authored-by: Damian Laczak <shoter@users.noreply.github.com>
  • Loading branch information
shoter and shoter committed Nov 5, 2023
1 parent 4f1204e commit 889f66c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions OpenTTDAdminPort/Messages/AdminRconMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,8 @@

namespace OpenTTDAdminPort.Messages
{
public class AdminRconMessage : IAdminMessage
public record AdminRconMessage(string Command) : IAdminMessage
{
public AdminMessageType MessageType => AdminMessageType.ADMIN_PACKET_ADMIN_RCON;

public string Command { get; }

public AdminRconMessage(string command)
{
this.Command = command;
}
}
}

0 comments on commit 889f66c

Please sign in to comment.