Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISteamworks

Hierarchy

Implemented by

Index

Methods

cancel

  • cancel(events: string | number | Array<string | number>, cb?: function): void
  • Parameters

    • events: string | number | Array<string | number>
    • Optional cb: function
        • (emitter: this, ...data: any[]): any
        • Parameters

          • emitter: this
          • Rest ...data: any[]

          Returns any

    Returns void

cancelAll

  • cancelAll(): void
  • Returns void

clearRichPresence

  • clearRichPresence(): void
  • Returns void

createArchive

  • createArchive(id: string, source: string, callback: function): void
  • Parameters

    • id: string
    • source: string
    • callback: function
        • (err?: string): void
        • Parameters

          • Optional err: string

          Returns void

    Returns void

createLobby

  • Parameters

    Returns void

createSaveGameMod

  • createSaveGameMod(name: string, slot: number): Promise<boolean>
  • Parameters

    • name: string
    • slot: number

    Returns Promise<boolean>

debugLog

  • debugLog(...args: any[]): void
  • Parameters

    • Rest ...args: any[]

    Returns void

deleteSaveGameMod

  • deleteSaveGameMod(name: string): void
  • Parameters

    • name: string

    Returns void

fillOutWorkshopMod

  • Parameters

    Returns void

getAbsolutePath

  • getAbsolutePath(p: string): any
  • Parameters

    • p: string

    Returns any

getBetaName

  • getBetaName(): string
  • Returns string

getBuildTime

  • getBuildTime(): number | undefined
  • Returns number | undefined

getDedicatedServerInfo

getFriends

  • Returns ISteamFriend[] | undefined

getLobbyData

  • getLobbyData(name: string): string | undefined
  • Parameters

    • name: string

    Returns string | undefined

getLobbyMembers

  • Returns ISteamFriend[] | undefined

getMatchmakingServer

  • getMatchmakingServer(): IMatchmakingServer | undefined
  • Returns IMatchmakingServer | undefined

getModPath

  • getModPath(name: string, modType: ModType, file?: string, checkIfExists?: boolean): IModPath | undefined
  • Parameters

    • name: string
    • modType: ModType
    • Optional file: string
    • Optional checkIfExists: boolean

    Returns IModPath | undefined

getMultiplayerLogs

  • getMultiplayerLogs(): string
  • Returns string

getPublishedMod

  • getPublishedMod(publishFileId: string): IWorkshopItem | undefined
  • Parameters

    • publishFileId: string

    Returns IWorkshopItem | undefined

getPublishedMods

  • Returns IWorkshopItem[] | undefined

getScreenName

  • getScreenName(): string | undefined
  • Returns string | undefined

getSteamId

  • Returns ISteamId | undefined

hasServerToJoin

  • hasServerToJoin(): boolean
  • Returns boolean

importFromSaveGameMod

  • importFromSaveGameMod(modIndex: number, json: string, callback: function): void
  • Parameters

    • modIndex: number
    • json: string
    • callback: function
        • (success: boolean): void
        • Parameters

          • success: boolean

          Returns void

    Returns void

initialize

  • initialize(): void
  • Returns void

isDedicatedServer

  • isDedicatedServer(): boolean
  • Returns boolean

isElectron

  • isElectron(): boolean
  • Returns boolean

isGreenworksEnabled

  • isGreenworksEnabled(): boolean
  • Returns boolean

isInLobby

  • isInLobby(): boolean
  • Returns boolean

isLinux

  • isLinux(): boolean
  • Returns boolean

isMac

  • isMac(): boolean
  • Returns boolean

isOverlayWorking

  • isOverlayWorking(): boolean
  • Returns boolean

joinLobby

  • joinLobby(lobbyId: string): void
  • Parameters

    • lobbyId: string

    Returns void

leaveLobby

  • leaveLobby(): void
  • Returns void

multiplayerLog

  • multiplayerLog(...args: any[]): void
  • Parameters

    • Rest ...args: any[]

    Returns void

multiplayerLogError

  • multiplayerLogError(...args: any[]): void
  • Parameters

    • Rest ...args: any[]

    Returns void

on

  • on(events: string | number | Array<string | number>, cb: function): this
  • Parameters

    • events: string | number | Array<string | number>
    • cb: function
        • (emitter: this, ...data: any[]): any
        • Parameters

          • emitter: this
          • Rest ...data: any[]

          Returns any

    Returns this

onMessage

  • onMessage(name: string, listener: function): boolean
  • Parameters

    • name: string
    • listener: function
        • (event: any, ...data: any[]): any
        • Parameters

          • event: any
          • Rest ...data: any[]

          Returns any

    Returns boolean

onReady

  • onReady(): void
  • Returns void

onUnload

  • onUnload(): void
  • Returns void

once

  • once(event: string | number, cb: function): this
  • Parameters

    • event: string | number
    • cb: function
        • (emitter: this, ...data: any[]): any
        • Parameters

          • emitter: this
          • Rest ...data: any[]

          Returns any

    Returns this

openLogsFolder

  • openLogsFolder(): void
  • Returns void

openModsFolder

  • openModsFolder(): void
  • Returns void

openUrl

  • openUrl(url: string): void
  • Parameters

    • url: string

    Returns void

openWorkshop

  • openWorkshop(publishId?: string): Promise<void>
  • Parameters

    • Optional publishId: string

    Returns Promise<void>

processBackups

  • processBackups(): boolean
  • Returns boolean

publishMod

  • publishMod(modIndex: number): Promise<string>
  • Parameters

    • modIndex: number

    Returns Promise<string>

recordProblem

  • recordProblem(message: string): void
  • Parameters

    • message: string

    Returns void

sendMessage

  • sendMessage(name: string, ...data: any[]): boolean
  • Parameters

    • name: string
    • Rest ...data: any[]

    Returns boolean

setLobbyData

  • setLobbyData(name: string, data: string): boolean
  • Parameters

    • name: string
    • data: string

    Returns boolean

setLobbyType

  • Parameters

    Returns void

setOverlayWorks

  • setOverlayWorks(ipg: boolean): void
  • Parameters

    • ipg: boolean

    Returns void

setRichPresence

  • setRichPresence(key: string, value: string): boolean
  • Parameters

    • key: string
    • value: string

    Returns boolean

setupMods

  • setupMods(callback: function): void
  • Parameters

    • callback: function
        • (): void
        • Returns void

    Returns void

setupMultiplayerLog

  • setupMultiplayerLog(): void
  • Returns void

setupReporting

  • setupReporting(): void
  • Returns void

toggleDeveloperTools

  • toggleDeveloperTools(): void
  • Returns void

trigger

  • trigger(event: string | number, ...data: any[]): Promise<any[]>
  • Parameters

    • event: string | number
    • Rest ...data: any[]

    Returns Promise<any[]>

unsubscribe

  • unsubscribe(publishId: string): Promise<void>
  • Parameters

    • publishId: string

    Returns Promise<void>

waitUntil

  • waitUntil(event: string | number): Promise<Object>
  • Parameters

    • event: string | number

    Returns Promise<Object>

Generated using TypeDoc