Inheritance: Packet
示例#1
0
        public static PingAck Instantiate(byte ping)
        {
            PingAck ack1 = PingAck.m_Cache[ping];

            if (ack1 == null)
            {
                PingAck.m_Cache[ping] = (ack1 = new PingAck(ping));
            }
            return(ack1);
        }
示例#2
0
        public static PingAck Instantiate(byte ping)
        {
            PingAck p = m_Cache[ping];

            if (p == null)
            {
                m_Cache[ping] = p = new PingAck(ping);
            }

            return(p);
        }
示例#3
0
        public static PingAck Instantiate( byte ping )
        {
            PingAck p = m_Cache[ping];

            if ( p == null )
                m_Cache[ping] = p = new PingAck( ping );

            return p;
        }
 public static void PingReq(NetState state, CircularBufferReader reader)
 {
     state.Send(PingAck.Instantiate(reader.ReadByte()));
 }
示例#5
0
        public static PingAck Instantiate( byte ping )
        {
            PingAck p = m_Cache[ping];

            if ( p == null )
            {
                m_Cache[ping] = p = new PingAck( ping );
                p.SetStatic();
            }

            return p;
        }
 public static void PingReq(NetState state, PacketReader pvSrc)
 {
     state.Send(PingAck.Instantiate(pvSrc.ReadByte()));
 }