MCPcopy Create free account
hub / github.com/e2wugui/zeze / getRole

Method getRole

ZezeJava/ZezeJavaTest/src/Zezex/TestRoleTimer.java:423–430  ·  view source on GitHub ↗
(ClientGame.App app)

Source from the content-addressed store, hash-verified

421 }
422
423 private static BRole getRole(ClientGame.App app) {
424 var get = new GetRoleList();
425 get.SendForWait(app.ClientService.GetSocket(), 30_000).await();
426 Assert.assertEquals(0, get.getResultCode());
427 if (get.Result.getRoleList().isEmpty())
428 return null;
429 return get.Result.getRoleList().get(0);
430 }
431
432 private static void sleep(long gap, int times) {
433 try {

Callers 5

testRoleTimer1Method · 0.95
testRoleTimerCron1Method · 0.95
testRoleTimer2Method · 0.95
testRoleTimerCron2Method · 0.95
benchRoleTimerMethod · 0.95

Calls 6

awaitMethod · 0.65
isEmptyMethod · 0.65
getMethod · 0.65
SendForWaitMethod · 0.45
GetSocketMethod · 0.45
getResultCodeMethod · 0.45

Tested by

no test coverage detected