public static MovementAck Instantiate(int seq, Mobile m) { int num1 = Notoriety.Compute(m, m); MovementAck ack1 = MovementAck.m_Cache[num1][seq]; if (ack1 == null) { MovementAck.m_Cache[num1][seq] = (ack1 = new MovementAck(seq, num1)); } return(ack1); }
// Methods static MovementAck() { MovementAck[][] ackArrayArray1 = new MovementAck[8][]; ackArrayArray1[0] = new MovementAck[256]; ackArrayArray1[1] = new MovementAck[256]; ackArrayArray1[2] = new MovementAck[256]; ackArrayArray1[3] = new MovementAck[256]; ackArrayArray1[4] = new MovementAck[256]; ackArrayArray1[5] = new MovementAck[256]; ackArrayArray1[6] = new MovementAck[256]; ackArrayArray1[7] = new MovementAck[256]; MovementAck.m_Cache = ackArrayArray1; }
public static MovementAck Instantiate( int seq, Mobile m ) { int noto = Notoriety.Compute( m, m ); MovementAck p = m_Cache[noto][seq]; if ( p == null ) m_Cache[noto][seq] = p = new MovementAck( seq, noto ); return p; }