Function GameServerApiFactory

GameServerApi - factory interface

  • Parameters

    • Optionalconfiguration: Configuration
    • OptionalbasePath: string
    • Optionalaxios: AxiosInstance

    Returns {
        gameServerControllerBanPlayer(
            gameServerId: string,
            playerId: string,
            banPlayerInputDTO?: BanPlayerInputDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<APIOutput>;
        gameServerControllerCreate(
            gameServerCreateDTO?: GameServerCreateDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<GameServerOutputDTOAPI>;
        gameServerControllerExecuteCommand(
            id: string,
            commandExecuteInputDTO?: CommandExecuteInputDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<CommandExecuteDTOAPI>;
        gameServerControllerGetImport(
            id: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<ImportStatusOutputDTOAPI>;
        gameServerControllerGetInstalledModules(
            id: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<ModuleInstallationOutputArrayDTOAPI>;
        gameServerControllerGetMapInfo(
            id: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<void>;
        gameServerControllerGetMapTile(
            id: string,
            x: string,
            y: string,
            z: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<void>;
        gameServerControllerGetModuleInstallation(
            gameServerId: string,
            moduleId: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<ModuleInstallationOutputDTOAPI>;
        gameServerControllerGetOne(
            id: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<GameServerOutputDTOAPI>;
        gameServerControllerGetPlayers(
            id: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<PlayerOnGameserverOutputDTOAPI>;
        gameServerControllerGetTypes(
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<GameServerTypesOutputDTOAPI>;
        gameServerControllerGiveItem(
            gameServerId: string,
            playerId: string,
            giveItemInputDTO?: GiveItemInputDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<void>;
        gameServerControllerImportFromCSMM(
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<ImportOutputDTOAPI>;
        gameServerControllerInstallModule(
            gameServerId: string,
            moduleId: string,
            moduleInstallDTO?: ModuleInstallDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<ModuleInstallationOutputDTOAPI>;
        gameServerControllerKickPlayer(
            gameServerId: string,
            playerId: string,
            kickPlayerInputDTO?: KickPlayerInputDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<APIOutput>;
        gameServerControllerListBans(
            id: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<BanPlayerOutputDTO>;
        gameServerControllerRemove(
            id: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<APIOutput>;
        gameServerControllerSearch(
            gameServerSearchInputDTO?: GameServerSearchInputDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<GameServerOutputArrayDTOAPI>;
        gameServerControllerSendMessage(
            id: string,
            messageSendInputDTO?: MessageSendInputDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<APIOutput>;
        gameServerControllerShutdown(
            id: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<void>;
        gameServerControllerTeleportPlayer(
            gameServerId: string,
            playerId: string,
            teleportPlayerInputDTO?: TeleportPlayerInputDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<APIOutput>;
        gameServerControllerTestReachability(
            gameServerTestReachabilityInputDTO?: GameServerTestReachabilityInputDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<GameServerTestReachabilityDTOAPI>;
        gameServerControllerTestReachabilityForId(
            id: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<GameServerTestReachabilityDTOAPI>;
        gameServerControllerUnbanPlayer(
            gameServerId: string,
            playerId: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<APIOutput>;
        gameServerControllerUninstallModule(
            gameServerId: string,
            moduleId: string,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<ModuleInstallationOutputDTOAPI>;
        gameServerControllerUpdate(
            id: string,
            gameServerUpdateDTO?: GameServerUpdateDTO,
            options?: RawAxiosRequestConfig,
        ): AxiosPromise<GameServerOutputDTOAPI>;
    }

    • gameServerControllerBanPlayer:function
      • Ban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerBanPlayer

        Parameters

        • gameServerId: string
        • playerId: string
        • OptionalbanPlayerInputDTO: BanPlayerInputDTO

          BanPlayerInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<APIOutput>

    • gameServerControllerCreate:function
    • gameServerControllerExecuteCommand:function
    • gameServerControllerGetImport:function
    • gameServerControllerGetInstalledModules:function
    • gameServerControllerGetMapInfo:function
      • Get map metadata for Leaflet
        OperationId: GameServerControllerGetMapInfo

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<void>

    • gameServerControllerGetMapTile:function
      • Get a map tile for Leaflet
        OperationId: GameServerControllerGetMapTile

        Parameters

        • id: string
        • x: string
        • y: string
        • z: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<void>

    • gameServerControllerGetModuleInstallation:function
    • gameServerControllerGetOne:function
    • gameServerControllerGetPlayers:function
    • gameServerControllerGetTypes:function
    • gameServerControllerGiveItem:function
      • Give an item to a player. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it's possible that the item is dropped on the ground instead of placed directly in the player's inventory. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerGiveItem

        Parameters

        • gameServerId: string
        • playerId: string
        • OptionalgiveItemInputDTO: GiveItemInputDTO

          GiveItemInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<void>

    • gameServerControllerImportFromCSMM:function
    • gameServerControllerInstallModule:function
    • gameServerControllerKickPlayer:function
      • Kick a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerKickPlayer

        Parameters

        • gameServerId: string
        • playerId: string
        • OptionalkickPlayerInputDTO: KickPlayerInputDTO

          KickPlayerInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<APIOutput>

    • gameServerControllerListBans:function
      • List bans for a gameserver. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerListBans

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<BanPlayerOutputDTO>

    • gameServerControllerRemove:function
      • Delete a gameserver Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerRemove

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<APIOutput>

    • gameServerControllerSearch:function
    • gameServerControllerSendMessage:function
      • Send a message in gameserver chat. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerSendMessage

        Parameters

        • id: string
        • OptionalmessageSendInputDTO: MessageSendInputDTO

          MessageSendInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<APIOutput>

    • gameServerControllerShutdown:function
      • Shuts down the gameserver. This is a 'soft' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a 'restart' instead. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerShutdown

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<void>

    • gameServerControllerTeleportPlayer:function
      • Teleport a player to a location. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerTeleportPlayer

        Parameters

        • gameServerId: string
        • playerId: string
        • OptionalteleportPlayerInputDTO: TeleportPlayerInputDTO

          TeleportPlayerInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<APIOutput>

    • gameServerControllerTestReachability:function
    • gameServerControllerTestReachabilityForId:function
    • gameServerControllerUnbanPlayer:function
      • Unban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerUnbanPlayer

        Parameters

        • gameServerId: string
        • playerId: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<APIOutput>

    • gameServerControllerUninstallModule:function
      • Uninstall a module from a gameserver. This will not delete the module from the database. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerUninstallModule

        Parameters

        • gameServerId: string
        • moduleId: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<ModuleInstallationOutputDTOAPI>

    • gameServerControllerUpdate:function