示例#1
0
        protected override void derivedWashNode(MLink pLink)
        {
            Debug.Assert(pLink != null);
            BoxSprite pNode = (BoxSprite)pLink;

            pNode.WashNodeData();
        }
示例#2
0
        public static BoxSprite Find(GameSprite.Name name)
        {
            //get the singleton
            BoxSpriteManager pMan = privGetInstance();

            Debug.Assert(pMan != null);
            // Compare functions only compares two Nodes

            // So:  Use a reference node
            //      fill in the needed data
            //      use in the Compare() function
            Debug.Assert(pBoxSpriteRef != null);
            pBoxSpriteRef.WashNodeData();

            //find the node by name
            pBoxSpriteRef.SetName(name);

            BoxSprite pData = (BoxSprite)pMan.baseFindNode(pBoxSpriteRef);

            return(pData);
        }