몬스터 데이터 처리 정리중

This commit is contained in:
Mingu Kim
2025-02-09 00:10:28 +09:00
parent 5f69ad8e30
commit 8a65bf7d31
7 changed files with 99 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace TON
{
[System.Serializable]
public class MonsterData
{
// 몬스터 아이디
public int id;
// 몬스터 명 or 프리팹 명?
public string name;
// 몬스터 타입 ex : melee, ranged
public string monsterType;
// 몬스터 체력
public int hp;
// 기본 공격력
public int attackPower;
// 기본 방어력
public int defensivePower;
public MonsterData(int id, string monsterType, string name, int hp, int attackPower, int defensivePower)
{
id = this.id;
monsterType = this.monsterType == "monster" ? "melle" : "ranged";
name = this.name;
hp = this.hp;
attackPower = this.attackPower;
defensivePower = this.defensivePower;
}
}
}