Interface IUsableActionUsing<REQUIREMENTS>
Properties
creature
creature
: (REQUIREMENTS["creature"] extends true ? default : never) | (undefined extends REQUIREMENTS["creature"] ? REQUIREMENTS["creature"] & undefined : never) | (REQUIREMENTS["creature"] extends { allowNone
: true; } ? undefined : never) | (REQUIREMENTS["creature"] extends { validate
(player
: default, value
: default): boolean; } ? default : never) | (REQUIREMENTS["creature"] extends { find
(player
: default, provided
?: IUsableActionPossibleUsing): default; } ? default : never)
doodad
doodad
: (REQUIREMENTS["doodad"] extends true ? default : never) | (undefined extends REQUIREMENTS["doodad"] ? REQUIREMENTS["doodad"] & undefined : never) | (REQUIREMENTS["doodad"] extends { allowNone
: true; } ? undefined : never) | (REQUIREMENTS["doodad"] extends { validate
(player
: default, value
: default): boolean; } ? default : never) | (REQUIREMENTS["doodad"] extends { find
(player
: default, provided
?: IUsableActionPossibleUsing): default; } ? default : never)
fromTile
item
item
: (REQUIREMENTS["item"] extends true ? default : never) | (undefined extends REQUIREMENTS["item"] ? REQUIREMENTS["item"] & undefined : never) | (REQUIREMENTS["item"] extends { allowNone
: true; } ? undefined | default : never) | (REQUIREMENTS["item"] extends { validate
(player
: default, value
: default): boolean; } ? default : never) | (REQUIREMENTS["item"] extends { validateType
(player
: default, value
: ItemType, description
?: IItemDescription): boolean; } ? default : never) | (REQUIREMENTS["item"] extends { finder
: default; } ? default : never) | (REQUIREMENTS["item"] extends { allowOnlyItemType
(player
: default, type
: ItemType): boolean; } ? undefined : never)
itemQuality
item
Quality
: (REQUIREMENTS["item"] extends true ? ArrayOr<Quality> : never) | (undefined extends REQUIREMENTS["item"] ? REQUIREMENTS["item"] & undefined : never) | (REQUIREMENTS["item"] extends { allowNone
: true; } ? undefined : never) | (REQUIREMENTS["item"] extends { validate
(player
: default, value
: default): boolean; } ? undefined | ArrayOr<Quality> : never) | (REQUIREMENTS["item"] extends { validateType
(player
: default, value
: ItemType, description
?: IItemDescription): boolean; } ? undefined | ArrayOr<Quality> : never) | (REQUIREMENTS["item"] extends { finder
: default; } ? ArrayOr<Quality> : never) | (REQUIREMENTS["item"] extends { allowOnlyItemType
(player
: default, type
: ItemType): boolean; } ? ArrayOr<Quality> : never)
itemType
item
Type
: (REQUIREMENTS["item"] extends true ? ItemType : never) | (undefined extends REQUIREMENTS["item"] ? REQUIREMENTS["item"] & undefined : never) | (REQUIREMENTS["item"] extends { allowOnlyItemType
(player
: default, type
: ItemType): boolean; } ? ItemType : never) | (REQUIREMENTS["item"] extends { requiresType
: true; } ? ItemType : (REQUIREMENTS["item"] extends { validate
(player
: default, value
: default): boolean; } ? undefined | ItemType : never) | (REQUIREMENTS["item"] extends { validateType
(player
: default, value
: ItemType, description
?: IItemDescription): boolean; } ? undefined | ItemType : never)) | (REQUIREMENTS["item"] extends { finder
: default; } ? ItemType : never) | (REQUIREMENTS["item"] extends { allowNone
: true; } ? undefined : never)
misc
misc: any
npc
npc
: (REQUIREMENTS["npc"] extends true ? default : never) | (undefined extends REQUIREMENTS["npc"] ? REQUIREMENTS["npc"] & undefined : never) | (REQUIREMENTS["npc"] extends { allowNone
: true; } ? undefined : never) | (REQUIREMENTS["npc"] extends { validate
(player
: default, value
: default): boolean; } ? default : never) | (REQUIREMENTS["npc"] extends { find
(player
: default, provided
?: IUsableActionPossibleUsing): default; } ? default : never)
targetTile
vehicle
vehicle
: (REQUIREMENTS["vehicle"] extends true ? default : never) | (undefined extends REQUIREMENTS["vehicle"] ? REQUIREMENTS["vehicle"] & undefined : never) | (REQUIREMENTS["vehicle"] extends { allowNone
: true; } ? undefined : never) | (REQUIREMENTS["vehicle"] extends { validate
(player
: default, value
: default): boolean; } ? default : never) | (REQUIREMENTS["vehicle"] extends { find
(player
: default, provided
?: IUsableActionPossibleUsing): default; } ? default : never)