MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / node_list

Method node_list

source/binding/Python/maa/resource.py:506–518  ·  view source on GitHub ↗

获取任务列表 / Get task list Returns: list[str]: 任务名列表 / List of task names Raises: RuntimeError: 如果获取失败

(self)

Source from the content-addressed store, hash-verified

504
505 @property
506 def node_list(self) -> list[str]:
507 """获取任务列表 / Get task list
508
509 Returns:
510 list[str]: 任务名列表 / List of task names
511
512 Raises:
513 RuntimeError: 如果获取失败
514 """
515 buffer = StringListBuffer()
516 if not Library.framework().MaaResourceGetNodeList(self._handle, buffer._handle):
517 raise RuntimeError("Failed to get node list.")
518 return buffer.get()
519
520 @property
521 def custom_recognition_list(self) -> list[str]:

Callers

nothing calls this directly

Calls 3

getMethod · 0.95
StringListBufferClass · 0.85
frameworkMethod · 0.80

Tested by

no test coverage detected