コード例 #1
0
ファイル: SpritePools.cs プロジェクト: brianex/osu-sgl
		private SpritePool GetPool(String path, String layer, String origin, bool additive, SpriteGroup spriteGroup, int poolGroup) {
			String key = GetKey(path, layer, origin, additive, spriteGroup, poolGroup);

			SpritePool pool;
			if (!pools.TryGetValue(key, out pool)) {
				pool = new SpritePool(path, layer, origin, additive, spriteGroup);
				pools.Add(key, pool);
			}

			return pool;
		}
コード例 #2
0
        private SpritePool GetPool(String path, String layer, String origin, bool additive, SpriteGroup spriteGroup, int poolGroup)
        {
            String key = GetKey(path, layer, origin, additive, spriteGroup, poolGroup);

            SpritePool pool;

            if (!pools.TryGetValue(key, out pool))
            {
                pool = new SpritePool(path, layer, origin, additive, spriteGroup);
                pools.Add(key, pool);
            }

            return(pool);
        }