internal PieceDrawer(EntityComponent entity, Texture2D texture2D, long updateMillisecond, int drawOrder) { m_updateElapse = 0; m_playingImage = 0; m_texture = texture2D; m_size = new Point( texture2D.Height, texture2D.Height ); m_updateMillisecond = updateMillisecond; m_imageCount = texture2D.Width / m_size.X; m_entity = entity; m_drawOrder = drawOrder; m_srcRect = new Rectangle(0, 0, m_size.X, m_size.Y); m_spriteBatch = SpriteManager.SpriteBatch; }
internal PieceDrawer(EntityComponent entity, Texture2D texture2D, int updateMillisecond, int drawOrder) : this(entity, texture2D, (long)updateMillisecond, drawOrder) { }