Exemple #1
0
    public JoinRoomIncomingMessage(ChatRoomManager chatRoomManager, MatchListingManager matchListingManager, MatchManager matchManager)
    {
        this.chatRoomManager = chatRoomManager;

        this.matchListingManager = matchListingManager;
        this.matchManager        = matchManager;
    }
    internal MatchListing(MatchListingManager matchListingManager, MatchManager matchManager, MatchListingType type, ClientSession creator, LevelData levelData, string name, uint minRank, uint maxRank, uint maxMembers, bool onlyFriends)
    {
        this.matchListingManager = matchListingManager;
        this.matchManager        = matchManager;

        this._Clients      = new ClientSessionCollectionLimited((int)maxMembers, this.Leave0);
        this.LobbyClients  = new ClientSessionCollection();
        this.BannedClients = new ConcurrentBag <IUserIdentifier>();

        this.LevelData = levelData;

        this.Name = name;

        this.MinRank = minRank;
        this.MaxRank = maxRank;

        this.MaxMembers  = maxMembers;
        this.OnlyFriends = onlyFriends;

        this.Type = type;

        if (creator != null)
        {
            this._HostSocketId = creator.SocketId;

            creator.Connection.OnDisconnected += this.OnCreatorDisconnectEarly;
        }
    }
Exemple #3
0
 public GetLevelOfTheDayIncomingMessage(MatchListingManager matchListingManager)
 {
     this.matchListingManager = matchListingManager;
 }
 public CreateMatchIncomingMessage(MatchListingManager matchListingManager)
 {
     this.matchListingManager = matchListingManager;
 }
 public StopQuickJoinIncomingMessage(MatchListingManager matchListingManager)
 {
     this.matchListingManager = matchListingManager;
 }
 public JoinTournamentIncomingMessage(MatchListingManager matchListingManager, MatchManager matchManager)
 {
     this.matchListingManager = matchListingManager;
     this.matchManager        = matchManager;
 }
 public PacketManager(ServerManager serverManager, ClientManager clientManager, ChatRoomManager chatRoomManager, MatchListingManager matchListingManager, MatchManager matchManager, ILoggerFactory loggerFactory)
 {
     this.IncomingPacketsJSON = new Dictionary <Type, IMessageIncomingJson>()
     {
         { typeof(JsonConfirmConnectionIncomingMessage), new ConfirmConnectionIncomingMessage() },
         { typeof(JsonTokenLoginIncomingMessage), new TokenLoginIncomingMessage(serverManager, clientManager, loggerFactory.CreateLogger <TokenLoginIncomingMessage>()) },
         { typeof(JsonGuestLoginIncomingPacket), new GuestLoginIncomingMessage(serverManager, clientManager, loggerFactory.CreateLogger <GuestLoginIncomingMessage>()) },
         { typeof(JsonLegacyPingIncomingMessage), new LegacyPingIncomingMessage() },
         { typeof(JsonManageVarsIncomingMessage), new ManageVarsIncomingMessage() },
         { typeof(JsonSetAccountSettingsMessage), new SetAccountSettingsIncomingMessage() },
         { typeof(JsonGetLevelListIncomingMessage), new GetLevelListIncomingMessage() },
         { typeof(JsonJoinRoomIncomingMessage), new JoinRoomIncomingMessage(chatRoomManager, matchListingManager, matchManager) },
         { typeof(JsonGetLevelOfTheDayIncomingMessage), new GetLevelOfTheDayIncomingMessage(matchListingManager) },
         { typeof(JsonGetTournamentIncomingMessage), new GetTournamentIncomingMessage(matchListingManager, matchManager) },
         { typeof(JsonRequestMatchesIncomingMessage), new RequestMatchesIncominggMessage(matchListingManager) },
         { typeof(JsonGetRoomsIncomingMessage), new GetRoomsIncomingMessage(chatRoomManager) },
         { typeof(JsonLeaveRoomIncomingMessage), new LeaveRoomIncomingMessage(chatRoomManager, matchListingManager, matchManager) },
         { typeof(JsonLeaveLobbyIncomingMessage), new LeaveLobbyIncomingMessage() },
         { typeof(JsonGetMemberListIncomingMessage), new GetMemberListIncomingMessage(chatRoomManager) },
         { typeof(JsonGetUserListIncomingMessage), new GetUserListIncomingMessage(clientManager) },
         { typeof(JsonGetUserPageIncomingMessage), new GetUserPageIncomingMessage(clientManager) },
         { typeof(JsonSendToRoomIncomingMessage), new SendToRoomIncomingMessage(chatRoomManager) },
         { typeof(JsonCreateMatchIncomingMessage), new CreateMatchIncomingMessage(matchListingManager) },
         { typeof(JsonForceStartIncomingMessage), new ForceStartIncomingMessage() },
         { typeof(JsonFinishDrawingIncomingMessage), new FinishDrawingIncomingMessage() },
         { typeof(JsonForfietIncomingMessage), new ForfietIncomingMessage() },
         { typeof(JsonFinishMatchIncomingMessage), new FinishMatchIncomingMessage() },
         { typeof(JsonLoseHatIncomingMessage), new LoseHatIncomingMessage() },
         { typeof(JsonGetHatIncomingMessage), new GetHatIncomingMessage() },
         { typeof(JsonCoinsIncomingMessage), new CoinsIncomingMessage() },
         { typeof(JsonGetPmsIncomingMessage), new GetPmsIncomingMessage() },
         { typeof(JsonGetPmIncomingMessage), new GetPmIncomingMessage() },
         { typeof(JsonDeletePmsIncomingMessage), new DeletePmsIncomingMessage() },
         { typeof(JsonSendPmIncomingMessage), new SendPmIncomingMessage() },
         { typeof(JsonEditUserListIncomingMessage), new EditUserListIncomingMessage() },
         { typeof(JsonKickFromMatchListingIncomingMessage), new KickFromMatchListingIncomingMessage() },
         { typeof(JsonBanFromMatchListingIncomingMessage), new BanFromMatchListingIncomingMessage() },
         { typeof(JsonStartQucikJoinIncomingMessage), new StartQucikJoinIncomingMessage(matchListingManager) },
         { typeof(JsonStopQuickJoinIncomingMessage), new StopQuickJoinIncomingMessage(matchListingManager) },
         { typeof(JsonRateLevelIncomingMessage), new RateLevelIncomingMessage() },
         { typeof(JsonSendThingIncomingMessage), new SendThingIncomingMessage() },
         { typeof(JsonThingExistsIncomingMessage), new ThingExistsIncomingMessage() },
         { typeof(JsonAcceptThingTransferIncomingMessage), new AcceptThingTransferIncomingMessage() },
         { typeof(JsonReportPmIncomingMessage), new ReportPmIncomingMessage() },
         { typeof(JsonKothIncomingMessage), new KothIncomingMessage() },
         { typeof(JsonDashIncomingMessage), new DashIncomingMessage() },
         { typeof(JsonJoinTournamentIncomingMessage), new JoinTournamentIncomingMessage(matchListingManager, matchManager) },
         { typeof(JsonWinHatIncomingMessage), new WinHatIncomingMessage() },
     };
 }
Exemple #8
0
 public RequestMatchesIncominggMessage(MatchListingManager matchListingManager)
 {
     this.matchListingManager = matchListingManager;
 }
 public StartQucikJoinIncomingMessage(MatchListingManager matchListingManager)
 {
     this.matchListingManager = matchListingManager;
 }