private BombBlock CreateBombBlock(XElement node)
        {
            BombBlock newBlock = new BombBlock();

            newBlock.WorldPosition              = new Vector2((float)node.Attribute("x"), (float)node.Attribute("y"));
            newBlock.Texture                    = TextureManager.Textures[node.Attribute("texture").Value];
            newBlock.ShouldRegenerate           = Data.Profile.PlayingRaceMode;
            newBlock.DetonationParticleEffect   = _bombBlockDetonationCallback;
            newBlock.RegenerationParticleEffect = _smashBlockRegenerationCallback;
            newBlock.TickCallback               = _registerTimerTick;

            _bombs.Add(newBlock);

            return(newBlock);
        }
        private BombBlock CreateBombBlock(XElement node)
        {
            BombBlock newBlock = new BombBlock();
            newBlock.WorldPosition = new Vector2((float)node.Attribute("x"), (float)node.Attribute("y"));
            newBlock.Texture = TextureManager.Textures[node.Attribute("texture").Value];
            newBlock.ShouldRegenerate = Data.Profile.PlayingRaceMode;
            newBlock.DetonationParticleEffect = _bombBlockDetonationCallback;
            newBlock.RegenerationParticleEffect = _smashBlockRegenerationCallback;
            newBlock.TickCallback = _registerTimerTick;

            _bombs.Add(newBlock);

            return newBlock;
        }
 private void HandleBombBlockImpact(BombBlock bomb)
 {
     bomb.TriggerByImpact();
 }