public static String ToString(EnemyTribe attribute) { switch (attribute) { case EnemyTribe.Animal: return("生物"); case EnemyTribe.LivingDead: return("不死"); case EnemyTribe.Spirit: return("精霊"); case EnemyTribe.Inorganic: return("無機物"); default: return(""); } }
public Equipment(int id, string description, int sellPrice, int code, int lv, string name, string notFoundName, int power, int deffense, int avoidance, int hit, Attribute attribute, EnemyTribe tribe) { Id = id; Name = name; SellPrice = sellPrice; Description = description; NotFoundName = notFoundName; Code = code; Lv = lv; Power = power; Deffense = deffense; Avoidance = avoidance; Hit = hit; Attribute = attribute; RegistTribe = tribe; }