// Methods public Packet(int packetID) { this.m_PacketID = packetID; PacketProfile profile1 = PacketProfile.GetOutgoingProfile(((byte)packetID)); if (profile1 != null) { profile1.RegConstruct(); } }
public Packet(int packetID) { m_PacketID = packetID; PacketProfile prof = PacketProfile.GetOutgoingProfile((byte)packetID); if (prof != null) { prof.RegConstruct(); } }
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(); } }
public Packet(int packetID, int length) { m_PacketID = packetID; m_Length = length; m_Stream = PacketWriter.CreateInstance(length); // new PacketWriter( length ); m_Stream.Write((byte)packetID); PacketProfile prof = PacketProfile.GetOutgoingProfile((byte)packetID); if (prof != null) { prof.RegConstruct(); } }
protected void Initialize(int packetID, int length) { m_PacketID = packetID; m_Length = length; if (m_Length > 0) { m_Stream = PacketWriter.CreateInstance(length); m_Stream.Write((byte)packetID); } PacketProfile prof = PacketProfile.GetOutgoingProfile((byte)packetID); if (prof != null) { prof.RegConstruct(); } }