30 lines
763 B
C#
30 lines
763 B
C#
using System;
|
|
using Sirenix.OdinInspector;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[Serializable]
|
|
public class LegionLevelData
|
|
{
|
|
[ReadOnly] [LabelText("宽")] public int Width;
|
|
|
|
[ReadOnly] [LabelText("高")] public int Height;
|
|
|
|
[ReadOnly] [LabelText("内径")] public float Radius;
|
|
|
|
[HideInInspector] public List<Building> Buildings;
|
|
|
|
[HideInInspector] [LabelText("出生点")] public List<int> BornPos;
|
|
|
|
[Serializable]
|
|
public class Building
|
|
{
|
|
[LabelText("建筑唯一序号")] public int id;
|
|
|
|
[LabelText("建筑ID")] public int buildingID;
|
|
|
|
[LabelText("位置")] public int position;
|
|
|
|
[LabelText("相连建筑")] public int supply = 0;
|
|
}
|
|
} |