Beispiel #1
0
        public SpawnTaskController(RoomsPlugin owner, int spawnId, Dictionary <string, string> properties)
        {
            _spawnerClient = owner;

            SpawnId    = spawnId;
            Properties = properties;
        }
Beispiel #2
0
        public SpawnTaskController(RoomsPlugin owner, int spawnId, Dictionary <string, string> properties, IClientSocket connection)
        {
            _spawnerClient = owner;

            _connection = connection;
            SpawnId     = spawnId;
            Properties  = properties;
        }
Beispiel #3
0
        public RoomController(RoomsPlugin owner, int roomId, IClientSocket connection, RoomOptions options)
        {
            _roomsPlugin = owner;

            Connection = connection;
            RoomId     = roomId;
            Options    = options;

            // Add handlers
            connection.SetHandler((short)OpCodes.ProvideRoomAccessCheck, HandleProvideRoomAccessCheck);
        }
Beispiel #4
0
        public RoomController(RoomsPlugin owner, int roomId, IClient client, RoomOptions options)
        {
            _roomsPlugin = owner;

            Client  = client;
            RoomId  = roomId;
            Options = options;

            // Add handlers
            client.SetHandler((ushort)OpCodes.ProvideRoomAccessCheck, HandleProvideRoomAccessCheck);
        }