2014-05-07 14:17:39 +00:00
|
|
|
|
using System.Linq;
|
|
|
|
|
|
2014-05-07 15:33:31 +00:00
|
|
|
|
namespace NPSharp.RPC.Packets
|
2014-05-07 14:17:39 +00:00
|
|
|
|
{
|
2014-05-07 15:33:31 +00:00
|
|
|
|
public class RPCMessage
|
2014-05-07 14:17:39 +00:00
|
|
|
|
{
|
|
|
|
|
internal const uint Signature = 0xDEADC0DE; // I wonder if aiw3 changed this since kernal noted it in his source code.
|
|
|
|
|
|
|
|
|
|
public uint GetTypeId()
|
|
|
|
|
{
|
|
|
|
|
var packet = (PacketAttribute) GetType().GetCustomAttributes(typeof (PacketAttribute), false).Single();
|
|
|
|
|
return packet.Type;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|