21 lines
900 B
C#
21 lines
900 B
C#
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; // 允许生成的地形标签
|
|
}
|
|
} |