-
Notifications
You must be signed in to change notification settings - Fork 0
아이템
toadsam edited this page Aug 23, 2023
·
2 revisions
class Inventory - 아이템 초기설정
public class Inventory
{
public string ItemName { get; } // 아이템이름 설정
public string WhatAbility { get; } // 아이템능력 설정
public int AbilityNunber { get; set; } // 아이템능력치 설정
public string Explanation { get; } // 아이템설명 설정
public bool IsWearing { get; set; } // 아이템창작여부 확인
public int Gold { get; set; } //아이템가격 설정
public bool IsSell { get; set; } //팔렸는지여부 확인
public Inventory(string itemname, string whatabilit, int abilitynumber, string explantion, bool iswearing) //인벤토리에 있는 아이템을 초기설정
{
ItemName = itemname;
WhatAbility = whatabilit;
AbilityNunber = abilitynumber;
Explanation = explantion;
IsWearing = iswearing;
}
public Inventory(string itemname, string whatabilit, int abilitynumber, string explantion, bool iswearing,int gold , bool issell)//상점아이템 초기설정
{
ItemName = itemname;
WhatAbility = whatabilit;
AbilityNunber = abilitynumber;
Explanation = explantion;
IsWearing = iswearing;
Gold = gold;
IsSell = issell;
}
}