addItemManagerWithUnworkMethods

This commit is contained in:
Kaktus200020 2024-08-15 10:19:09 +03:00
parent dbf81f5624
commit f5d563f887
4 changed files with 70 additions and 8 deletions

View file

@ -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<string, int> resourcesNeededToCraft;
//методы
private void LoadTexture()
{
//я что-то хз как это
}
}
}

View file

@ -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<string, ItemInfo> tagItemPairs;
//методы
ItemInfo GetItemInfo(string tag)
{
return tagItemPairs.GetValueOrDefault(tag);
}
void LoadItemTexture()
{
}
}
}

View file

@ -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;
}
}