mirror of https://github.com/quasar/Quasar.git
30 lines
591 B
C#
30 lines
591 B
C#
using ProtoBuf;
|
|
using xServer.Core.Networking;
|
|
|
|
namespace xServer.Core.Packets.ServerPackets
|
|
{
|
|
[ProtoContract]
|
|
public class DoVisitWebsite : IPacket
|
|
{
|
|
[ProtoMember(1)]
|
|
public string URL { get; set; }
|
|
|
|
[ProtoMember(2)]
|
|
public bool Hidden { get; set; }
|
|
|
|
public DoVisitWebsite()
|
|
{
|
|
}
|
|
|
|
public DoVisitWebsite(string url, bool hidden)
|
|
{
|
|
this.URL = url;
|
|
this.Hidden = hidden;
|
|
}
|
|
|
|
public void Execute(Client client)
|
|
{
|
|
client.Send(this);
|
|
}
|
|
}
|
|
} |