first commit
This commit is contained in:
19
Attributes/PacketHandlerAttribute.cs
Normal file
19
Attributes/PacketHandlerAttribute.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KCM.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
|
||||
public class PacketHandlerAttribute : Attribute
|
||||
{
|
||||
public ushort packetId;
|
||||
|
||||
public PacketHandlerAttribute(ushort packetId)
|
||||
{
|
||||
this.packetId = packetId;
|
||||
}
|
||||
}
|
||||
}
|
||||
14
Attributes/TransmittableAttribute.cs
Normal file
14
Attributes/TransmittableAttribute.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KCM.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
|
||||
public class TransmittableAttribute : Attribute
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user