2025-09-28 15:02:57 +08:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
2025-08-07 16:44:43 +08:00
|
|
|
namespace Data
|
|
|
|
|
{
|
2025-09-19 08:26:54 +08:00
|
|
|
public enum BuildingType
|
|
|
|
|
{
|
|
|
|
|
Static,
|
2025-10-10 14:08:23 +08:00
|
|
|
Dynamic
|
2025-09-19 08:26:54 +08:00
|
|
|
}
|
2025-10-10 14:08:23 +08:00
|
|
|
|
2025-08-19 20:22:10 +08:00
|
|
|
public class BuildingDef : EntityDef
|
2025-08-07 16:44:43 +08:00
|
|
|
{
|
2025-09-28 15:02:57 +08:00
|
|
|
public KeyCode activateKey = KeyCode.F;
|
2025-10-10 14:08:23 +08:00
|
|
|
public BuildingType buildingType = BuildingType.Static;
|
2025-09-28 15:02:57 +08:00
|
|
|
public float detectionRadius = 3;
|
2025-10-10 14:08:23 +08:00
|
|
|
public float slowDown = 0f;
|
|
|
|
|
public TileDef tile;
|
2025-09-28 15:02:57 +08:00
|
|
|
public EventDef[] triggerEvents;
|
2025-10-10 14:08:23 +08:00
|
|
|
public string triggerPosition;
|
2025-08-07 16:44:43 +08:00
|
|
|
}
|
|
|
|
|
}
|