点击或拖拽改变大小

EventHelperFindCharacters(ListPredicateCharacter, Int32, ListCharacter, Int16, Int16, SByte) 方法

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

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

参数

predicates  ListPredicateCharacter
筛选条件
estimateCount  Int32
需要的人物数量,不一定能找到这么多,缺失的需要调用者生成
results  ListCharacter
角色的列表,需要调用者创建,其中原有的元素会被清空
areaIdBegin  Int16
需要查询的起始区域
areaIdEnd  Int16
需要查询的终止区域
curStateTemplateId  SByte  (Optional)
当前所处区域
参见