ThreeKingdomsSlingshot/Assets/Scripts/OutGame/Arena/TowerTable.cs

39 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using UnityEngine;
namespace TKS.OutGame
{
/// <summary>천하제일 탑(tower.csv · 기획서 §9 · S13) — 층마다 적 편성 템플릿(챕터 스테이지) · hp/atk 배율 · 보상 보옥·도면 · 상자.</summary>
public class TowerTable : ScriptableObject
{
[Serializable]
public class Floor
{
public int floor;
public float hpMult;
public float atkMult;
[Tooltip("<chapter>-<stage>")]
public string templateStage;
public int rewardGem;
public int rewardBlueprint;
[Tooltip("chests.csv id(비면 없음)")]
public string chest;
}
public List<Floor> floors = new List<Floor>();
public Floor Get(int floor)
{
foreach (var f in floors)
if (f.floor == floor) return f;
return null;
}
public int Top
{
get { return floors.Count; }
}
}
}