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

Method createOnlineSet

ZezeJava/ZezeJava/src/main/java/Zeze/Game/Online.java:313–321  ·  view source on GitHub ↗

创建新的在线集合,必须在App.Start流程中,紧接着默认Online的创建,马上创建其他的在线集合。 必须在Application.start()之前调用,以保证这里创建的Table能被open。 @param name 在线集合名字 @return 返回新建的在线集合实例。返回值可以保存下来。

(@NotNull AppBase app, @NotNull String name)

Source from the content-addressed store, hash-verified

311 * @return 返回新建的在线集合实例。返回值可以保存下来。
312 */
313 protected @NotNull Online createOnlineSet(@NotNull AppBase app, @NotNull String name) throws Exception {
314 if (name.isEmpty())
315 throw new IllegalArgumentException("empty name");
316 if (this != defaultInstance)
317 throw new IllegalStateException("must be called by default online");
318 var online = new Online(app, name);
319 online.Initialize(app);
320 return online;
321 }
322
323 public @NotNull ProviderWithOnline getProviderWithOnline() {
324 return (ProviderWithOnline)providerApp.providerImplement;

Callers 1

createMethod · 0.80

Calls 2

isEmptyMethod · 0.65
InitializeMethod · 0.65

Tested by

no test coverage detected