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

Method createRole

ZezeJava/ZezeJavaTest/src/Zezex/TestRoleTimer.java:415–421  ·  view source on GitHub ↗
(ClientGame.App app, String role)

Source from the content-addressed store, hash-verified

413 }
414
415 private static long createRole(ClientGame.App app, String role) {
416 var createRole = new CreateRole();
417 createRole.Argument.setName(role);
418 createRole.SendForWait(app.ClientService.GetSocket(), 30_000).await();
419 Assert.assertEquals(0, createRole.getResultCode());
420 return createRole.Result.getId();
421 }
422
423 private static BRole getRole(ClientGame.App app) {
424 var get = new GetRoleList();

Callers 5

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

Calls 6

awaitMethod · 0.65
getIdMethod · 0.65
setNameMethod · 0.45
SendForWaitMethod · 0.45
GetSocketMethod · 0.45
getResultCodeMethod · 0.45

Tested by

no test coverage detected