Пример #1
0
        public static ProxySprite Find(ProxySprite.Name name)
        {
            //ensure call Create() first
            ProxySpriteMan pMan = ProxySpriteMan.GetInstance();

            Debug.Assert(pMan != null);

            pMan.poNodeForCompare.setName(name);

            ProxySprite pData = (ProxySprite)pMan.baseFind(pMan.poNodeForCompare);

            return(pData);
        }
        public static ProxySprite Find(ProxySprite.Name name)
        {
            ProxySpriteMan pMan = ProxySpriteMan.privGetInstance();

            Debug.Assert(pMan != null);

            // Compare functions only compares two Nodes

            // So:  Use the Compare Node - as a reference
            //      use in the Compare() function
            pMan.poNodeCompare.SetName(name);

            ProxySprite pData = (ProxySprite)pMan.baseFind(pMan.poNodeCompare);

            return(pData);
        }