From f5d563f887330df210368bc1e5beebc9b8e6ab26 Mon Sep 17 00:00:00 2001 From: Kaktus200020 Date: Thu, 15 Aug 2024 10:19:09 +0300 Subject: [PATCH] addItemManagerWithUnworkMethods --- .../GameManagers/ItemManager/ItemInfo.cs | 24 +++++++++++++++++++ .../GameManagers/ItemManager/ItemManager.cs | 24 +++++++++++++++++++ .../ItemManager/WeaponItemInfo.cs | 14 +++++++++++ ZoFo/ZoFo.csproj | 16 ++++++------- 4 files changed, 70 insertions(+), 8 deletions(-) create mode 100644 ZoFo/GameCore/GameManagers/ItemManager/ItemInfo.cs create mode 100644 ZoFo/GameCore/GameManagers/ItemManager/ItemManager.cs create mode 100644 ZoFo/GameCore/GameManagers/ItemManager/WeaponItemInfo.cs diff --git a/ZoFo/GameCore/GameManagers/ItemManager/ItemInfo.cs b/ZoFo/GameCore/GameManagers/ItemManager/ItemInfo.cs new file mode 100644 index 0000000..68873e4 --- /dev/null +++ b/ZoFo/GameCore/GameManagers/ItemManager/ItemInfo.cs @@ -0,0 +1,24 @@ +using Microsoft.Xna.Framework.Graphics; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ZoFo.GameCore.GameManagers.ItemManager +{ + class ItemInfo + { + //поля + string tag; + string textureName; + Texture2D itemTexture; + bool isCraftable; + Dictionary resourcesNeededToCraft; + //методы + private void LoadTexture() + { + //я что-то хз как это + } + } +} diff --git a/ZoFo/GameCore/GameManagers/ItemManager/ItemManager.cs b/ZoFo/GameCore/GameManagers/ItemManager/ItemManager.cs new file mode 100644 index 0000000..3585ec4 --- /dev/null +++ b/ZoFo/GameCore/GameManagers/ItemManager/ItemManager.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ZoFo.GameCore.GameManagers.ItemManager +{ + class ItemManager + { + //поля + Dictionary tagItemPairs; + //методы + ItemInfo GetItemInfo(string tag) + { + return tagItemPairs.GetValueOrDefault(tag); + } + void LoadItemTexture() + { + + } + + } +} diff --git a/ZoFo/GameCore/GameManagers/ItemManager/WeaponItemInfo.cs b/ZoFo/GameCore/GameManagers/ItemManager/WeaponItemInfo.cs new file mode 100644 index 0000000..dcea75f --- /dev/null +++ b/ZoFo/GameCore/GameManagers/ItemManager/WeaponItemInfo.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ZoFo.GameCore.GameManagers.ItemManager +{ + class WeaponItemInfo:ItemInfo + { + //поля + float damage; + } +} diff --git a/ZoFo/ZoFo.csproj b/ZoFo/ZoFo.csproj index ef2682f..e762dae 100644 --- a/ZoFo/ZoFo.csproj +++ b/ZoFo/ZoFo.csproj @@ -11,22 +11,22 @@ Icon.ico - - + + - - + + - - + + - - + + \ No newline at end of file