Module modular

Source

Structsยง

MaterialStatManifest
PRIMARY_COMPONENT_POOL
SECONDARY_COMPONENT_POOL ๐Ÿ”’

Enumsยง

ModularBase
ModularComponent
ModularWeaponComponentKeyError
ModularWeaponCreationError
WeaponName

Constantsยง

SUPPORTED_TOOLKINDS ๐Ÿ”’

Functionsยง

compatible_handedness
Check if hand restrictions are compatible.
generate_weapon_primary_components
Generate all primary components for specific tool and material.
generate_weapons
modify_name
random_weapon
Creates a random modular weapon when provided with a toolkind, material, and optionally the handedness
random_weapon_primary_component
Creates a random modular weapon primary component when provided with a toolkind, material, and optionally the handedness
weapon_component_to_key
weapon_to_key

Type Aliasesยง

ModularWeaponComponentKey
This is used as a key to uniquely identify the modular weapon in asset manifests in voxygen (Main component, material)
ModularWeaponKey
This is used as a key to uniquely identify the modular weapon in asset manifests in voxygen (Main component, material, hands)
PrimaryComponentPool ๐Ÿ”’
SecondaryComponentPool ๐Ÿ”’