MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / _should_stop

Function _should_stop

unity_cli/api/uitree_monkey.py:26–30  ·  view source on GitHub ↗

Check if the monkey loop should terminate.

(action_count: int, count: int | None, start: float, duration: float | None)

Source from the content-addressed store, hash-verified

24
25
26def _should_stop(action_count: int, count: int | None, start: float, duration: float | None) -> bool:
27 """Check if the monkey loop should terminate."""
28 if count is not None and action_count >= count:
29 return True
30 return duration is not None and (time.time() - start) >= duration
31
32
33class MonkeyRunner:

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected