mirror of
https://github.com/quasar/Quasar.git
synced 2026-10-25 09:59:57 +08:00
28 lines
541 B
C#
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);
|
|
}
|
|
}
|
|
} |