From ec550ea093c8baf46d868a84547294ac8353d83e Mon Sep 17 00:00:00 2001 From: Mootfrost777 Date: Sat, 17 Aug 2024 18:07:12 +0300 Subject: [PATCH] Add wood dummy --- .../Interactables/Collectables/Collectable.cs | 2 +- .../Entities/Interactables/Collectables/Wood.cs | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 ZoFo/GameCore/GameObjects/Entities/Interactables/Collectables/Wood.cs diff --git a/ZoFo/GameCore/GameObjects/Entities/Interactables/Collectables/Collectable.cs b/ZoFo/GameCore/GameObjects/Entities/Interactables/Collectables/Collectable.cs index bfe7113..b25d7a3 100644 --- a/ZoFo/GameCore/GameObjects/Entities/Interactables/Collectables/Collectable.cs +++ b/ZoFo/GameCore/GameObjects/Entities/Interactables/Collectables/Collectable.cs @@ -13,6 +13,6 @@ public class Collectable : Interactable public override void OnInteraction(object sender, CollisionComponent e) { - AppManager.Instance.server.AddData(new UpdateInteraction(Id)); + } } diff --git a/ZoFo/GameCore/GameObjects/Entities/Interactables/Collectables/Wood.cs b/ZoFo/GameCore/GameObjects/Entities/Interactables/Collectables/Wood.cs new file mode 100644 index 0000000..2c6b0b8 --- /dev/null +++ b/ZoFo/GameCore/GameObjects/Entities/Interactables/Collectables/Wood.cs @@ -0,0 +1,14 @@ +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using ZoFo.GameCore.Graphics; + +namespace ZoFo.GameCore.GameObjects.Entities.Interactables.Collectables; + +public class Wood : Collectable +{ + public override GraphicsComponent graphicsComponent { get; } = new(new List { "Wood" }, "Wood"); + + public Wood(Vector2 position) : base(position) + { + } +} \ No newline at end of file