private UltimaPropertyCounter GetPropertyCounter(int cliloc, int type = 0) { UltimaPropertyCounter counter = null; if (!_Properties.ContainsKey(cliloc)) { switch (type) { default: counter = new UltimaPropertyCounter(cliloc); break; case 1: counter = new UltimaPropertyRangeCounter(cliloc); break; case 2: counter = new UltimaPropertyCounterString(cliloc); break; } _Properties.Add(cliloc, counter); } else { counter = _Properties[cliloc]; } return(counter); }
private UltimaPropertyCounter GetPropertyCounter( int cliloc, int type = 0 ) { UltimaPropertyCounter counter = null; if ( !_Properties.ContainsKey( cliloc ) ) { switch ( type ) { default: counter = new UltimaPropertyCounter( cliloc ); break; case 1: counter = new UltimaPropertyRangeCounter( cliloc ); break; case 2: counter = new UltimaPropertyCounterString( cliloc ); break; } _Properties.Add( cliloc, counter ); } else counter = _Properties[ cliloc ]; return counter; }