点击或拖拽改变大小

EventHelperFindCharacters(PredicateCharacter, Int32, ListCharacter, ListInt16, SByte) 方法

根据Filter查询符合要求的角色,默认搜索所有区域

命名空间: GameData.Domains.TaiwuEvent.EventHelper
程序集: GameData (在 GameData.exe 中) 版本:1.0.0
语法
C#
public static void FindCharacters(
	Predicate<Character> predicate,
	int estimateCount,
	List<Character> results,
	List<short> areaIdList,
	sbyte curStateTemplateId = -1
)

参数

predicate  PredicateCharacter
查询规则
estimateCount  Int32
需要的人物数量,不一定能找到这么多,缺失的需要调用者生成
results  ListCharacter
角色的列表,需要调用者创建,其中原有的元素会被清空
areaIdList  ListInt16
需要查询的区域列表
curStateTemplateId  SByte  (Optional)
当前所处区域
参见