コード例 #1
0
ファイル: UltimaLootAnalyzer.cs プロジェクト: uotools/SpyUO-1
        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);
        }
コード例 #2
0
        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;
        }