public MCDrawAlphanumericSprite CreateDrawAlphanumericSprite(MCBaseSprite spriteID)
        {
            MCDrawAlphanumericSprite spDef = new MCDrawAlphanumericSprite(App);
            string str;

            if (!m_spriteMgr.ContainsKey(spriteID))
            {
                str = "CreateDrawAlphanumericSprite()スプライト番号[" + spriteID + "]は存在しません。";
                throw new Exception(str);
            }
            if (spriteID.GetID() != MCAlphanumericSprite.SpriteID)
            {
                str = "スプライトハンドルが、固定英数字スプライトではありません。";
                throw new Exception(str);
            }
            var sp = (MCAlphanumericSprite)spriteID;

            //! 初期設定
            spDef.D2RenderType = (int)SPRITE_TYPE.ALPHANUMERIC;
            spDef.Technique    = m_defTechnicId;
            spDef.BlendState   = (int)BLENDSTATE.ALPHA;
            spDef.Sprite       = sp;
            spDef.Effect       = m_defDrawCommandId;

            m_drawSprites.Add(spDef, true);
            return(spDef);
        }
        MCDrawSquareAmountSprite CreateDrawSASprite(MCBaseSprite spriteID)
        {
            MCDrawSquareAmountSprite spSA = new MCDrawSquareAmountSprite(App);

            string str;

            if (!m_spriteMgr.ContainsKey(spriteID))
            {
                str = "CreateDrawSASprite()スプライト番号[" + spriteID + "]は存在しません。";
                throw new Exception(str);
            }
            else if (spriteID.GetID() != MCSprite.SpriteID)
            {
                str = "スプライトハンドルが、スプライトではありません。";
                throw new Exception(str);
            }

            //! 初期設定
            spSA.D2RenderType = (int)SPRITE_TYPE.SQUARE_A;
            spSA.Technique    = m_defTechnicId;
            spSA.BlendState   = (int)BLENDSTATE.ALPHA;
            spSA.Sprite       = (MCSprite)spriteID;
            spSA.Effect       = m_defDrawCommandId;

            m_drawSprites.Add(spSA, true);
            return(spSA);
        }
        public bool DeleteSprite(MCBaseSprite spriteNo)
        {
            string str;

            if (!m_spriteMgr.ContainsKey(spriteNo))
            {
                str = "DeleteSprite()スプライト番号[" + spriteNo + "]]は存在しません。";
                throw new Exception(str);
            }

            m_spriteMgr.Remove(spriteNo);
            return(true);
        }
        public bool ChangeDrawSprite(MCBaseSprite spriteID, MCDrawSprite drawSprite)
        {
            string str;

            if (!m_drawSprites.ContainsKey(drawSprite))
            {
                str = "常駐描画スプライトは存在しません。";
                throw new Exception(str);
            }
            if (!m_spriteMgr.ContainsKey(spriteID))
            {
                str = "スプライト番号[" + spriteID + "]は存在しません。";
                throw new Exception(str);
            }


            //drawSprite.Sprite = m_sqSpriteMgr[spriteID];

            return(true);
        }