Пример #1
0
 public static void Remove(GameSprite pNode)
 {
     ProxySpriteManager pMan = ProxySpriteManager.PrivGetInstance();
     Debug.Assert(pMan != null);
     Debug.Assert(pNode != null);
     pMan.BaseRemove(pNode);
 }
Пример #2
0
 public static ProxySprite Find(ProxySprite.Name name)
 {
     ProxySpriteManager pMan = ProxySpriteManager.PrivGetInstance();
     pMan.poNodeCompare.SetName(name);
     ProxySprite pData = (ProxySprite)pMan.BaseFind(pInstance.poNodeCompare);
     return pData;
 }
Пример #3
0
        public static void PrintReport()
        {
            Debug.WriteLine("--------------------------------------------------------------------------------");
            Debug.WriteLine("----------------------------- ProxySprite Manager ------------------------------");
            Debug.WriteLine("--------------------------------------------------------------------------------");

            ProxySpriteManager pMan = ProxySpriteManager.PrivGetInstance();

            Debug.Assert(pMan != null);
            pMan.BasePrintReport();
        }
Пример #4
0
        public static ProxySprite Find(ProxySprite.Name name)
        {
            ProxySpriteManager pMan = ProxySpriteManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            pMan.poCompareNode.name = name;

            ProxySprite pData = (ProxySprite)pMan.BaseFind(pMan.poCompareNode);

            Debug.Assert(pData != null);
            return(pData);
        }
Пример #5
0
        // TODO right now proxies are not being added to the manager
        public static ProxySprite Add(Sprite.Name name)
        {
            ProxySpriteManager pMan = ProxySpriteManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            ProxySprite pNode = (ProxySprite)pMan.BaseAdd();

            Debug.Assert(pNode != null);

            pNode.Set(name);

            return(pNode);
        }
Пример #6
0
 public static void Dump()
 {
     ProxySpriteManager pMan = ProxySpriteManager.PrivGetInstance();
     Debug.Assert(pMan != null);
     pMan.BaseDump();
 }