Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IModManager

Hierarchy

  • IModManager

Implemented by

Index

Methods

cacheHooks

  • cacheHooks(): void
  • Returns void

callHook

  • callHook(hook: Hook, ...args: any[]): any
  • Parameters

    • hook: Hook
    • Rest ...args: any[]

    Returns any

callHookReduce

  • callHookReduce(hook: Hook, ...args: any[]): any
  • Parameters

    • hook: Hook
    • Rest ...args: any[]

    Returns any

callHookWithDefault

  • callHookWithDefault<T>(hook: Hook, defaultValue: T, ...args: any[]): T
  • Type parameters

    • T

    Parameters

    • hook: Hook
    • defaultValue: T
    • Rest ...args: any[]

    Returns T

canLoad

  • canLoad(index: number, fromModsMenu?: boolean): CanLoadState
  • Parameters

    • index: number
    • Optional fromModsMenu: boolean

    Returns CanLoadState

canLoadFromIdentifier

  • Parameters

    • identifier: string

    Returns ICanLoadInfo

getAuthor

  • getAuthor(index: number): string
  • Parameters

    • index: number

    Returns string

getCreatedDate

  • getCreatedDate(index: number): number | undefined
  • Parameters

    • index: number

    Returns number | undefined

getDescription

  • getDescription(index: number): string
  • Parameters

    • index: number

    Returns string

getEnabledMods

  • getEnabledMods(): number[]
  • Returns number[]

getFile

  • getFile(modIndex: number, file: string, callback: function): boolean
  • Parameters

    • modIndex: number
    • file: string
    • callback: function
        • (data: string, success: boolean): void
        • Parameters

          • data: string
          • success: boolean

          Returns void

    Returns boolean

getFolderName

  • getFolderName(index: number): string
  • Parameters

    • index: number

    Returns string

getIdentifier

  • getIdentifier(index: number): string
  • Parameters

    • index: number

    Returns string

getIndexFromName

  • getIndexFromName(name: string): number[]
  • Parameters

    • name: string

    Returns number[]

getIndexFromPath

  • getIndexFromPath(path: string): number | undefined
  • Parameters

    • path: string

    Returns number | undefined

getIndexFromPublishId

  • getIndexFromPublishId(publishFileId: string): number[]
  • Parameters

    • publishFileId: string

    Returns number[]

getInstallDate

  • getInstallDate(index: number): number | undefined
  • Parameters

    • index: number

    Returns number | undefined

getLastUpdatedDate

  • getLastUpdatedDate(index: number): number | undefined
  • Parameters

    • index: number

    Returns number | undefined

getLoadedModByName

  • getLoadedModByName(name: string): IModInfo | undefined
  • Parameters

    • name: string

    Returns IModInfo | undefined

getLoadedMods

  • Returns IModInfo[]

getModFromIndex

  • Parameters

    • i: number

    Returns IModInfo

getMods

  • Returns IModInfo[]

getName

  • getName(index: number): string
  • Parameters

    • index: number

    Returns string

getPath

  • getPath(index: number): string
  • Parameters

    • index: number

    Returns string

getProvided

  • Parameters

    • index: number

    Returns IModProvides

getPublishFileId

  • getPublishFileId(index: number): string | undefined
  • Parameters

    • index: number

    Returns string | undefined

getRequiredMods

  • getRequiredMods(index: number): string[]
  • Parameters

    • index: number

    Returns string[]

getState

  • Parameters

    • index: number

    Returns ModState

getSteamIdOwner

  • getSteamIdOwner(index: number): string | undefined
  • Parameters

    • index: number

    Returns string | undefined

getType

  • Parameters

    • index: number

    Returns ModType

getVersion

  • getVersion(index: number): string
  • Parameters

    • index: number

    Returns string

isEnabled

  • isEnabled(index: number): boolean
  • Parameters

    • index: number

    Returns boolean

isEnabledByName

  • isEnabledByName(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

isLoaded

  • isLoaded(index: number): boolean
  • Parameters

    • index: number

    Returns boolean

isLoadedByName

  • isLoadedByName(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

isValid

  • isValid(index: number): boolean
  • Parameters

    • index: number

    Returns boolean

load

  • load(index: number): void
  • Parameters

    • index: number

    Returns void

loadAll

  • loadAll(options: Partial<IPlayOptions>, callback: function): void
  • Parameters

    • options: Partial<IPlayOptions>
    • callback: function
        • (err: string | undefined, mods: string[]): void
        • Parameters

          • err: string | undefined
          • mods: string[]

          Returns void

    Returns void

reload

  • reload(index: number): boolean
  • Parameters

    • index: number

    Returns boolean

reloadByName

  • reloadByName(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

removeMod

  • removeMod(id: number, uninstall?: boolean): void
  • Parameters

    • id: number
    • Optional uninstall: boolean

    Returns void

save

  • save(index: number): void
  • Parameters

    • index: number

    Returns void

saveAll

  • saveAll(): void
  • Returns void

setCreatedDate

  • setCreatedDate(index: number, createdDate: number): void
  • Parameters

    • index: number
    • createdDate: number

    Returns void

setInstallDate

  • setInstallDate(index: number, installDate: number): void
  • Parameters

    • index: number
    • installDate: number

    Returns void

setLastUpdated

  • setLastUpdated(index: number, lastUpdated: number): void
  • Parameters

    • index: number
    • lastUpdated: number

    Returns void

setPublishId

  • setPublishId(index: number, publishedFileId: string): void
  • Parameters

    • index: number
    • publishedFileId: string

    Returns void

setState

  • setState(index: number, state: ModState, force?: boolean, cacheHooks?: boolean, callback?: function): boolean
  • Parameters

    • index: number
    • state: ModState
    • Optional force: boolean
    • Optional cacheHooks: boolean
    • Optional callback: function
        • (): void
        • Returns void

    Returns boolean

setSteamIdOwner

  • setSteamIdOwner(index: number, steamIdOwner: string): void
  • Parameters

    • index: number
    • steamIdOwner: string

    Returns void

setupMod

  • setupMod(folderName: string, modType: ModType, callback: function, initialModState?: ModState): void
  • Parameters

    • folderName: string
    • modType: ModType
    • callback: function
        • (id?: number): void
        • Parameters

          • Optional id: number

          Returns void

    • Optional initialModState: ModState

    Returns void

setupMods

  • setupMods(callback: function): void
  • Parameters

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

    Returns void

uninitialize

  • uninitialize(index: number): void
  • Parameters

    • index: number

    Returns void

uninitializeAll

  • uninitializeAll(): void
  • Returns void

unload

  • unload(index: number): void
  • Parameters

    • index: number

    Returns void

unloadAll

  • unloadAll(reset?: boolean): void
  • Parameters

    • Optional reset: boolean

    Returns void

Generated using TypeDoc