public Packet(int packetID, int length)
{
this.m_PacketID = packetID;
this.m_Length = length;
this.m_Stream = PacketWriter.CreateInstance(length);
this.m_Stream.Write(((byte)packetID));
PacketProfile profile1 = PacketProfile.GetOutgoingProfile(((byte)packetID));
if (profile1 != null)
{
profile1.RegConstruct();
}
}