예제 #1
0
        // Methods
        public Packet(int packetID)
        {
            this.m_PacketID = packetID;
            PacketProfile profile1 = PacketProfile.GetOutgoingProfile(((byte)packetID));

            if (profile1 != null)
            {
                profile1.RegConstruct();
            }
        }
예제 #2
0
        public Packet(int packetID)
        {
            m_PacketID = packetID;

            PacketProfile prof = PacketProfile.GetOutgoingProfile((byte)packetID);

            if (prof != null)
            {
                prof.RegConstruct();
            }
        }
예제 #3
0
        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();
            }
        }
예제 #4
0
        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();
            }
        }
예제 #5
0
        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();
            }
        }