-
注册后才能下载/购买插件!快来注册吧,注册即可免费下载
精翻插件 !【
点我注册】
-
RustSB.COM向广大野生Rust插件作者发出入驻邀请!详情请见[
原创作者条约]
汉化 Zone Manager - 区域管理
3.1.10
您正在使用一款已经过时的浏览器!部分功能不能正常使用。
请尝试升级或使用
其他浏览器。
- 修复了 API 方法 GetZoneIDsNoAlloc的拼写错误
- 新增Hook方法:
OnZoneCreated(string zoneId) —— 当新区域被创建时调用
OnZoneUpdated(string zoneId) —— 当现有区域被修改时调用
OnZoneErased(string zoneId) —— 当区域被删除时调用
- 新增Hook方法:
OnZoneInitialize(string zoneId) —— 当区域对象被创建时调用
OnZoneDestroyed(string zoneId) —— 当区域对象被销毁时调用
- 新增对临时区域(Temporary Zones)的支持。
- 这些区域不会被保存,并会在 ZoneManager 或创建它们的插件卸载时自动销毁。
- 新增 API 方法:
bool CreateOrUpdateTemporaryZone(Plugin owner, string zoneId, string[] args, Vector3 position = default(Vector3))
void CreateOrUpdateTemporaryZones(Plugin owner, List<(string, string[], Vector3)> zones, List<bool> results = null)
bool EraseTemporaryZone(Plugin owner, string zoneId)
void EraseTemporaryZones(Plugin owner, List<string> zoneIds, List<bool> results = null)
3.1.9
- 新增 API 方法:
(bool) PositionHasFlag(Vector3 position, string flagName)
(bool) IsPositionInAnyZone(Vector3 position)
(void) GetZonesAtPosition(Vector3 position, List<string> results)
- 移除 Linq
- 保存数据时忽略 空/默认值
- 修复通过服务器控制台运行时的 "zone" 控制台指令
- 新增 "zone_list" 控制台指令
- 新增以下非分配(non-allocating)API 方法(使用集合参数):
(void) GetPlayerZoneIDsNoAlloc(BasePlayer player, List<string> list)
(void) GetEntityZoneIDsNoAlloc(BaseEntity entity, List<string> list)
(void) GetZoneIDsNoAlloc(List<string> list)
(void) GetPlayersInZoneNoAlloc(string zoneID, List<BasePlayer> list)
(void) GetEntitiesInZoneNoAlloc(string zoneId, List<BaseEntity> list)
(void) CreateOrUpdateZones(List<(string, string[], Vector3)> zones, List<bool> results = null)
(void) EraseZones(List<string> zoneIds, List<bool> results = null)
- 新增了
isEntityInZoneHook,该Hook封装了IsEntityInZone,使其可以被调用而不会让Oxide误以为是内部Hook。