using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZoFo.GameCore.Graphics;
using Microsoft.Xna.Framework;
using ZoFo.GameCore.GameManagers.CollisionManager;
using ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient;
using ZoFo.GameCore.GameManagers;


namespace ZoFo.GameCore.GameObjects.Entities.Interactables.Collectables
{
    public class Peeble:Collectable
    {
        public override StaticGraphicsComponent graphicsComponent { get; } = new("Peeble");

        public Peeble(Vector2 position) : base(position)
        {

        }
        public override void OnInteraction(object sender, CollisionComponent e)
        {
            AppManager.Instance.server.AddData(new UpdateLoot("Peeble"));
            AppManager.Instance.server.DeleteObject(this);
        }
    }
}
