Hierarchy

Constructors

Properties

Accessors

Methods

activateSteamNetworkingDebugMessages clearServerToJoin clearSteamRichPresence closeWindow createArchive createLobby createSaveGameMod deleteSaveGameMod enableSafePaths enumerateRemoteFiles getAbsolutePath getAppPath getDedicatedServerInfo getFriends getGlobalStatInt getHeapStatistics getLobbyData getLobbyId getLobbyMembers getLobbyOwner getMatchmakingServer getMatchmakingServerPort getModPath getModPathSync getMultiplayerLogs getOsPlatform getPublishedItems getPublishedModFromPublishFileId getPublishedMods getScreenName getServerToJoin getStatInt getSteamId getSteamNetworking hasServerToJoin importFromSaveGameMod incrementStat initialize isAbsolutePath isContentTracingRecording isDedicatedServer isDevelopmentBranch isElectron isGreenworksEnabled isInLobby isNapiEnabled isOverlayWorking isRelayNetworkReady isTestMode isUsingAsar joinLobby leaveLobby multiplayerLog multiplayerLogError multiplayerLogWarn onAddHistoricalAction onGlobalSlotReady onInputFocus onUnload openBackupsFolder openGpuInfoWindow openInviteDialog openLogsFolder openModFolder openModsFolder openSaveFolder openUrl openWorkshop processDedicatedServerBackups publishMod reload saveFile setCustomTitleBar setDiscordPresence setFullscreen setLobbyData setLobbyType setOverlayWorks setServerToJoin setSteamNetworkingSendRates setSteamRichPresence setupMods setupMultiplayerLog shouldAutomaticallyJoinServer startPlaytimeTracking stopPlaytimeTracking subscribe toggleContentTracingRecording toggleDeveloperTools toggleOverlay unsubscribe updateDiscordPresence updateSteamRichPresence writeBackup

Constructors

  • Parameters

    Returns default

Properties

event: IEventEmitter<default, ISteamworksEvents>
initialized: boolean = false
loadedMods: Record<string, IWorkshopItem> = {}

Accessors

  • get build(): undefined | IBuild
  • Returns undefined | IBuild

  • get buildName(): string
  • Returns string

  • get buildTime(): number
  • Returns the build time of the game, not depending on any save that's currently loaded.

    If there is no IBuild data associated with this build, the build is considered as having happened "now". This will only be the case in dev builds, and means that after this build time is saved with a version, no further upgrades will be run. Build time is saved in the following places:

    • saveDataGlobal.gameLastPlayedBuildTime
    • saveData.gameBuildTime
    • Island.mapGenBuildTime
    • Island.saveBuildTime

    Returns number

  • get isGameOverlayActive(): boolean
  • Returns boolean

  • get isLowPowerMode(): boolean
  • Returns boolean

  • get isRunningOnBatteryPower(): boolean
  • Returns boolean

  • get isRunningOnSteamDeck(): boolean
  • Returns boolean

Methods

  • Insanely expensive to do and it's possible for it to cause crashes

    Returns void

  • Returns void

  • Returns void

  • Returns Promise<void>

  • Parameters

    • id: string

    Returns Promise<void>

  • Parameters

    • type: LobbyType

    Returns void

  • Parameters

    • name: string
    • slot: number

    Returns Promise<boolean>

  • Parameters

    • name: string

    Returns Promise<void>

  • Returns void

  • Returns IRemoteFile[]

  • Parameters

    • Rest ...p: string[]

    Returns string

  • Parameters

    • Rest ...p: string[]

    Returns string

  • Returns undefined | ISteamFriend[]

  • Parameters

    • name: string

    Returns undefined | number

  • Returns Promise<undefined | HeapStatistics>

  • Parameters

    • name: string

    Returns undefined | string

  • Returns undefined | string

  • Returns undefined | ISteamFriend[]

  • Returns undefined | string

  • Returns undefined | IMatchmakingServer

  • Returns number

  • Parameters

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

    Returns Promise<undefined | IModPath>

  • Parameters

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

    Returns undefined | IModPath

  • Returns string

  • Returns undefined | Platform

  • Returns Promise<IWorkshopItem[]>

  • Parameters

    • publishFileId: string

    Returns undefined | IWorkshopItem

  • Returns undefined | IWorkshopItem[]

  • Returns undefined | string

  • Returns undefined | ServerInfo

  • Parameters

    • name: string

    Returns undefined | number

  • Returns undefined | ISteamId

  • Returns undefined | ISteamworksNetworking

  • Returns boolean

  • Do not remove callback. It's required for compatibility with pre 2.4 saves

    Parameters

    • mod: ModInformation
    • jsonOrUint8Array: string | Uint8Array
    • Optional callback: ((success: boolean) => void)
        • (success: boolean): void
        • Parameters

          • success: boolean

          Returns void

    Returns Promise<boolean>

  • Increases the specified stat. This will never throw errors todo: strongly typed stat areas & types? method to automatically fetch all stats for each area?

    Type Parameters

    Parameters

    Returns void

  • Returns Promise<undefined | IWaywardPreload>

  • Parameters

    • path: string

    Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Parameters

    • lobbyId: string

    Returns void

  • Returns void

  • Parameters

    • Rest ...args: any[]

    Returns void

  • Parameters

    • Rest ...args: any[]

    Returns void

  • Parameters

    • Rest ...args: any[]

    Returns void

  • Returns void

  • Parameters

    • inputElement: HTMLElement

    Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Parameters

    Returns Promise<void>

  • Returns Promise<void>

  • Returns void

  • Parameters

    • url: string

    Returns void

  • Parameters

    • Optional publishFileId: string

    Returns Promise<void>

  • Parameters

    • Optional force: boolean

    Returns Promise<boolean>

  • Parameters

    Returns Promise<string>

  • Returns Promise<void>

  • Parameters

    • fileName: string
    • blob: Blob

    Returns Promise<void>

  • Parameters

    • enabled: boolean

    Returns Promise<void>

  • Parameters

    • presenceInfo: INapiDiscordPresenceInfo

    Returns Promise<void>

  • Parameters

    • fullscreen: boolean

    Returns Promise<void>

  • Parameters

    • name: string
    • data: string

    Returns boolean

  • Parameters

    • type: LobbyType

    Returns boolean

  • Parameters

    • overlayWorks: boolean

    Returns void

  • Parameters

    • min: number
    • max: number

    Returns void

  • Parameters

    • key: string
    • value: string

    Returns boolean

  • Returns Promise<void>

  • Returns void

  • Returns void

  • Returns void

  • Parameters

    • publishFileIds: string[]

    Returns Promise<void>

  • Returns Promise<boolean>

  • Returns Promise<void>

  • Parameters

    • disabled: boolean

    Returns void

  • Parameters

    • publishFileId: string

    Returns Promise<void>

  • Returns void

  • Returns void

  • Parameters

    • slot: number
    • data: Uint8Array

    Returns Promise<undefined | string>

Generated using TypeDoc