Hierarchy

  • ModInformation

Implements

Constructors

  • Parameters

    • game: Game
    • config: IModConfig
    • extra: {
          folderName: string;
          path: string;
          type: ModType;
      }
      • folderName: string
      • path: string
      • type: ModType

    Returns ModInformation

Properties

config: Readonly<IModConfig>
createdDate?: number
folderName: string
installDate?: number
languages?: IModLanguage[]
lastUpdated?: number
log: Log
path: string
provides: IModProvides
publishedFileId?: string
state: ModState = ModState.Error
steamIdOwner?: string
type: ModType

Accessors

  • get author(): string
  • Returns string

  • get canPublish(): boolean
  • Returns boolean

  • get canUnlockMilestones(): boolean
  • Returns whether the given mod allows unlocking milestones

    Returns boolean

  • get description(): string
  • Returns string

  • get identifier(): string
  • Returns string

  • get instance(): undefined | default
  • Returns undefined | default

  • get isEnabled(): boolean
  • Returns boolean

  • get isInitialized(): boolean
  • Returns boolean

  • get isLoaded(): boolean
  • Returns boolean

  • get isMultiplayerClientSide(): boolean
  • Returns boolean

  • get isMultiplayerCompatible(): boolean
  • Returns boolean

  • get isMultiplayerServerSide(): boolean
  • Returns boolean

  • get isUnloadable(): boolean
  • Returns boolean

  • get loadOrder(): number
  • Returns number

  • get name(): string
  • Returns string

  • get requiredMods(): string[]
  • Returns string[]

  • get scriptFileName(): undefined | string
  • Returns undefined | string

  • get tags(): ReadonlySet<string>
  • Returns ReadonlySet<string>

  • get version(): string
  • Returns string

Methods

  • Parameters

    • fromModsMenu: boolean = false
    • forMultiplayer: boolean = false
    • count: number = 0

    Returns CanLoadState

  • Parameters

    • Optional item: IWorkshopItem

    Returns void

  • Parameters

    • fileName: string

    Returns Promise<undefined | string>

  • Returns Promise<undefined | string | false>

  • Parameters

    • fileName: undefined | string

    Returns Promise<undefined | IModPath>

  • Returns Promise<string | false>

  • Parameters

    • loadOrder: number

    Returns Promise<void>

  • Called when ModManager setups up the mod

    Parameters

    • requireJs: undefined | IRequireJs
    • modPath: IModPath
    • scriptFileName: string

      javascript file name without ".js"

    • reloading: boolean

    Returns Promise<void>

  • Used by pro developers

    Returns Promise<boolean>

  • Returns void

  • Parameters

    • state: ModState
    • force: boolean = false
    • unloaded: boolean = false

    Returns Promise<boolean>

  • Returns string

  • Returns Promise<void>

Generated using TypeDoc