Files
Quasar/Server/Core/Packets/ServerPackets/DoShowMessageBox.cs
T
MaxXor 23cafeb2f3 Switched from ProtoBuff to NetSerializer
NetSerializer should be slightly faster than Protocol Buffers
2015-08-08 16:21:09 +02:00

34 lines
814 B
C#

using System;
using xServer.Core.Networking;
namespace xServer.Core.Packets.ServerPackets
{
[Serializable]
public class DoShowMessageBox : IPacket
{
public string Caption { get; set; }
public string Text { get; set; }
public string MessageboxButton { get; set; }
public string MessageboxIcon { get; set; }
public DoShowMessageBox()
{
}
public DoShowMessageBox(string caption, string text, string messageboxbutton, string messageboxicon)
{
this.Caption = caption;
this.Text = text;
this.MessageboxButton = messageboxbutton;
this.MessageboxIcon = messageboxicon;
}
public void Execute(Client client)
{
client.Send(this);
}
}
}