예제 #1
0
        public static void DumpAnimNodes()
        {
            AnimMan pANodeMan = AnimMan.PrivGetInstance();

            Debug.Assert(pANodeMan != null);

            pANodeMan.BaseDumpNodes();
        }
예제 #2
0
        public static AnimNode Attach(Animation pAnimation)
        {
            AnimMan pANodeMan = AnimMan.PrivGetInstance();

            Debug.Assert(pANodeMan != null);

            AnimNode pNode = (AnimNode)pANodeMan.BaseAdd();

            Debug.Assert(pNode != null);

            pNode.Set(pAnimation);
            return(pNode);
        }
예제 #3
0
        public static Animation Find(Animation.Name name)
        {
            AnimMan pANodeMan = AnimMan.PrivGetInstance();

            Debug.Assert(pANodeMan != null);

            pANodeMan.poAnimNodeCompare.poAnimation.SetName(name);

            AnimNode pANode = (AnimNode)pANodeMan.BaseFind(pANodeMan.poAnimNodeCompare);

            Debug.Assert(pANode != null);

            return(pANode.poAnimation);
        }
예제 #4
0
        public static void Destroy()
        {
            AnimMan pANodeMan = AnimMan.PrivGetInstance();

            Debug.Assert(pANodeMan != null);


#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("AnimMan.Destroy()");
#endif
            pANodeMan.BaseDestroy();

#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("{0} ({1})", pANodeMan.poAnimNodeCompare, pANodeMan.poAnimNodeCompare.GetHashCode());
            Debug.WriteLine("{0} ({1})", AnimMan.pInstance, AnimMan.pInstance.GetHashCode());
#endif

            pANodeMan.poAnimNodeCompare = null;
            pANodeMan.poNullAnim        = null;
            AnimMan.pInstance           = null;
        }