Esempio n. 1
0
        public static CollisionPair Find(CollisionPairName name)
        {
            CollisionPairManager collisionPairMan = CollisionPairManager.GetInstance();

            return((CollisionPair)collisionPairMan.BaseFind((DLink) new CollisionPair {
                name = name
            }));
        }
        public static CollisionPair Find(CollisionPair.Name name)
        {
            CollisionPairManager pInstance = CollisionPairManager.PrivGetInstance();

            Debug.Assert(pInstance != null);

            // Compare functions only compares two Nodes

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

            CollisionPair pData = (CollisionPair)pInstance.BaseFind(pInstance.poNodeCompare);

            return(pData);
        }
Esempio n. 3
0
        public static CollisionPair Find(CollisionPair.Name name)
        {
            CollisionPairManager pMan = CollisionPairManager.pActiveMan;

            Debug.Assert(pMan != null);

            // Compare functions only compares two Nodes

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

            CollisionPair pData = (CollisionPair)pMan.BaseFind(CollisionPairManager.poNodeCompare);

            return(pData);
        }