- allocate<DESCRIPTION>(mod: IModInformation, id: EnumId, name: string, description: DESCRIPTION, onAllocate?: ((enumNumber: number, description: DESCRIPTION) => void), onUnallocate?: ((enumNumber: number) => void)): default | undefined
-
Type Parameters
-
DESCRIPTION extends undefined | object
Parameters
-
-
id: EnumId
-
name: string
-
description: DESCRIPTION
-
Optional
onAllocate: ((enumNumber: number, description: DESCRIPTION) => void)
-
- (enumNumber: number, description: DESCRIPTION): void
-
Parameters
-
enumNumber: number
-
description: DESCRIPTION
Returns void
-
Optional
onUnallocate: ((enumNumber: number) => void)
-
- (enumNumber: number): void
-
Returns void
Returns default | undefined
- allocate<DESCRIPTION>(mod: IModInformation, id: EnumId, name: string, description?: DESCRIPTION, onAllocate?: ((enumNumber: number, description?: DESCRIPTION) => void), onUnallocate?: ((enumNumber: number) => void)): default | undefined
-
Type Parameters
-
DESCRIPTION extends undefined | object
Parameters
-
-
id: EnumId
-
name: string
-
Optional
description: DESCRIPTION
-
Optional
onAllocate: ((enumNumber: number, description?: DESCRIPTION) => void)
-
- (enumNumber: number, description?: DESCRIPTION): void
-
Parameters
-
enumNumber: number
-
Optional
description: DESCRIPTION
Returns void
-
Optional
onUnallocate: ((enumNumber: number) => void)
-
- (enumNumber: number): void
-
Returns void
Returns default | undefined