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

Method attach

ZezeJava/ZezexJava/server/src/Game/Buf/Bufs.java:41–50  ·  view source on GitHub ↗
(int id)

Source from the content-addressed store, hash-verified

39 }
40
41 public final void attach(int id) {
42 // config: create Buf by id.
43 BBuf buf = new BBuf();
44 buf.setId(id);
45 buf.setAttachTime(System.currentTimeMillis());
46 buf.setContinueTime(3600 * 1000); // 1 hour
47 buf.setExtra(new BBufExtra());
48
49 (new BufExtra(buf, buf.getExtra_Game_Buf_BBufExtra())).Attach(this);
50 }
51
52 public final void attach(Buf buf) {
53 // config: conflict 等

Callers 2

mainMethod · 0.80
AttachMethod · 0.80

Calls 15

detachMethod · 0.95
getRoleIdMethod · 0.95
getContinueTimeMethod · 0.80
getModuleContextMethod · 0.80
putMethod · 0.65
getBufsMethod · 0.65
getIdMethod · 0.65
getBeanMethod · 0.65
scheduleMethod · 0.65
StartCalculateFighterMethod · 0.65
setIdMethod · 0.45
setExtraMethod · 0.45

Tested by

no test coverage detected