Exemplo n.º 1
0
        //----------------------------------------------------------------------
        // Methods
        //----------------------------------------------------------------------

        public static ProxySprite Add(GameSprite.Name name)
        {
            ProxySpriteManager pMan = ProxySpriteManager.privGetInstance();

            Debug.Assert(pMan != null);
            //todo look into edge case for null game sprite name - create a null game sprite to add?
            ProxySprite pNode = (ProxySprite)pMan.baseAddToFront();

            Debug.Assert(pNode != null);

            pNode.Set(name);

            return(pNode);
        }