(client) feat:实现健康状态定义,实现事件定义
This commit is contained in:
16
Client/Assets/Scripts/Data/LocationRangeDef.cs
Normal file
16
Client/Assets/Scripts/Data/LocationRangeDef.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Data
|
||||
{
|
||||
public class LocationRangeDef:Define
|
||||
{
|
||||
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; // 允许生成的地形标签
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user