
generic.online.game.server.gogs.model.rooms.AnnotationMethodsParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of generic-online-game-server Show documentation
Show all versions of generic-online-game-server Show documentation
Simple tool to create online game server.
The newest version!
package generic.online.game.server.gogs.model.rooms;
import com.corundumstudio.socketio.SocketIOClient;
import com.corundumstudio.socketio.SocketIONamespace;
import lombok.Getter;
import java.util.List;
import java.util.Map;
import java.util.Timer;
@Getter
public class AnnotationMethodsParams {
private final String eventPrefix;
private final SocketIONamespace namespace;
private final Room room;
private final Map clientsMap;
private final List roomTimers;
private RoomContext context;
public AnnotationMethodsParams(RoomInitializerData initializerData,
SocketIONamespace namespace,
Room room) {
this.eventPrefix = "";
this.namespace = namespace;
this.room = room;
this.clientsMap = initializerData.getClientsMap();
this.roomTimers = initializerData.getRoomTimers();
this.context = new RoomContext();
}
public AnnotationMethodsParams(AnnotationMethodsParams copyFrom,
Room innerRoom,
String eventPrefix) {
this.namespace = copyFrom.namespace;
this.clientsMap = copyFrom.clientsMap;
this.roomTimers = copyFrom.roomTimers;
this.eventPrefix = eventPrefix;
this.room = innerRoom;
this.context = new RoomContext();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy