(clienr) feat:事件定义

This commit is contained in:
m0_75251201
2025-08-28 15:07:36 +08:00
parent 9713ad9129
commit 56956f351f
17 changed files with 305 additions and 3063 deletions

View File

@ -0,0 +1,21 @@
using System.Collections.Generic;
namespace Data
{
public class EntityEventDef:Define
{
public BuildingDef buildingDef;
public MonsterDef monster;
public CharacterDef character; // 要生成的实体Def的defName
public int count = 1; // 生成的数量
public float minRadius = 0f; // 最小距离(以格数单位)
public float maxRadius = 10f; // 最大距离(以格数单位)
public int width = 5; // 宽度(以格数单位),指定一个方形区域
public int height = 5; // 高度(以格数单位)
public bool allowNearWalls = true; // 是否允许靠近墙壁生成
public bool allowSpawnOnPawn = false; // 是否允许直接生成在角色身上
// 可以添加更多约束,如:
public List<string> allowedTerrainTags; // 允许生成的地形标签
}
}