Files
Quasar/Client/Core/Packets/ServerPackets/DoKeyboardEvent.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

28 lines
541 B
C#

using System;
using xClient.Core.Networking;
namespace xClient.Core.Packets.ServerPackets
{
[Serializable]
public class DoKeyboardEvent : IPacket
{
public byte Key { get; set; }
public bool KeyDown { get; set; }
public DoKeyboardEvent()
{
}
public DoKeyboardEvent(byte key, bool keyDown)
{
this.Key = key;
this.KeyDown = keyDown;
}
public void Execute(Client client)
{
client.Send(this);
}
}
}