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 { public class ItemInfo { //поля string tag; public string textureName; Texture2D itemTexture; public bool isCraftable; public string description; public Dictionary resourcesNeededToCraft; public ItemInfo (string tag) { this.tag = tag; } public ItemInfo(string tag, string description, string textureName, bool isCraftable, Dictionary resourcesNeededToCraft) { this.tag = tag; this.textureName = textureName; this.description = description; this.isCraftable = isCraftable; this.resourcesNeededToCraft = resourcesNeededToCraft; } //методы public void LoadTexture() { //я что-то хз как это itemTexture=AppManager.Instance.Content.Load(textureName); } } }