919293949596979899
* @return Returns the session instance created using a * {@link SessionBuilder}. */ public Session createSession() { SessionBuilder sessionBuilder = new SessionBuilder().id(sessionId .incrementAndGet()); return sessionBuilder.build(); }
162163164165166167168169170
session.setTcpMessageSender(tcpMessageSender); } public PlayerSession createPlayerSession(Player player) { SessionBuilder sessionBuilder = new SessionBuilder(); DefaultPlayerSession playerSession = new DefaultPlayerSession(sessionBuilder, player); return playerSession; }
109110111112113114115116117
270271272273274275276277278279
return localAddress; } public PlayerSession createPlayerSession(Player player) { SessionBuilder sessionBuilder = new SessionBuilder(); DefaultPlayerSession playerSession = new DefaultPlayerSession( sessionBuilder, player); return playerSession; }