获取任务列表 / Get task list Returns: list[str]: 任务名列表 / List of task names Raises: RuntimeError: 如果获取失败
(self)
| 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]: |
nothing calls this directly
no test coverage detected