geometry-tower-defense/Assets/GameMain/Scripts/Entity/EntityData/MapData.cs

28 lines
634 B
C#

using System;
using UnityEngine;
namespace GeometryTD.Entity.EntityData
{
[Serializable]
public class MapData : EntityDataBase
{
[SerializeField] private int _levelId = 0;
public MapData(int entityId, int levelId, Vector3 position) : this(entityId, 0, levelId, position)
{
}
public MapData(int entityId, int typeId, int levelId, Vector3 position) : base(entityId, typeId)
{
_levelId = levelId;
Position = position;
}
public int LevelId
{
get => _levelId;
set => _levelId = value;
}
}
}