EquipmentTypeDefinition ​
Inherits: DatabaseResource < Resource
Inherited by: WeaponTypeDefinition
EquipmentTypeDefinition defines a category of equipment and what mesh slots it affects. This is the base class for all equipment categories (helmet, chest, weapon, etc.)
Properties ​
Array[GeneralSkeleton.BodySlot] | body_parts_affected | [] |
Array[GeneralSkeleton.AttachmentSlot] | attachment_points_used | [] |
Methods ​
bool | is_valid() |
Array[Dictionary] | validate() |
bool | affects_body_part( body_part: GeneralSkeleton.BodySlot ) |
bool | uses_attachment_point( attachment_point: GeneralSkeleton.AttachmentSlot ) |
Array[GeneralSkeleton.BodySlot] | get_affected_body_parts() |
Array[GeneralSkeleton.AttachmentSlot] | get_used_attachment_points() |
bool | affects_any_mesh_slots() |
int | get_mesh_slot_count() |
Array[String] | get_meshes_for_body_part( body_part: GeneralSkeleton.BodySlot ) |
Array[String] | get_meshes_for_attachment_point( attachment_point: GeneralSkeleton.AttachmentSlot ) |
String | get_body_part_display_name( body_part: GeneralSkeleton.BodySlot ) |
String | get_attachment_point_display_name( attachment_point: GeneralSkeleton.AttachmentSlot ) |
String | get_body_parts_display_text() |
String | get_attachment_points_display_text() |
bool | is_weapon_type() |
String | get_category() |
bool | add_body_part( body_part: GeneralSkeleton.BodySlot ) |
bool | add_attachment_point( attachment_point: GeneralSkeleton.AttachmentSlot ) |
bool | remove_body_part( body_part: GeneralSkeleton.BodySlot ) |
bool | remove_attachment_point( attachment_point: GeneralSkeleton.AttachmentSlot ) |
void | clear_all_mesh_slots() |
Dictionary | get_debug_info() |
Property descriptions ​
Mesh Slot Usage
Array[GeneralSkeleton.BodySlot] body_parts_affected = [] ​
Which body parts this equipment type can replace/hide
Array[GeneralSkeleton.AttachmentSlot] attachment_points_used = [] ​
Which attachment points this equipment type uses for meshes
Method descriptions ​
bool is_valid() ​
Is it free of errors?
Array[Dictionary] validate() ​
Checks the settings. Gives the problems found (empty when it is fine).
bool affects_body_part( body_part: GeneralSkeleton.BodySlot ) ​
Check if this equipment type affects a specific body part
bool uses_attachment_point( attachment_point: GeneralSkeleton.AttachmentSlot ) ​
Check if this equipment type uses a specific attachment point
Array[GeneralSkeleton.BodySlot] get_affected_body_parts() ​
Get all body parts affected by this equipment type
Array[GeneralSkeleton.AttachmentSlot] get_used_attachment_points() ​
Get all attachment points used by this equipment type
bool affects_any_mesh_slots() ​
Check if this equipment type affects any mesh slots
int get_mesh_slot_count() ​
Get total number of mesh slots affected
Array[String] get_meshes_for_body_part( body_part: GeneralSkeleton.BodySlot ) ​
Get available mesh names for a specific body part affected by this equipment type
Array[String] get_meshes_for_attachment_point( attachment_point: GeneralSkeleton.AttachmentSlot ) ​
Get available mesh names for a specific attachment point used by this equipment type
String get_body_part_display_name( body_part: GeneralSkeleton.BodySlot ) ​
Get formatted display name for a body part enum
String get_attachment_point_display_name( attachment_point: GeneralSkeleton.AttachmentSlot ) ​
Get formatted display name for an attachment point enum
String get_body_parts_display_text() ​
Get human-readable list of affected body parts
String get_attachment_points_display_text() ​
Get human-readable list of used attachment points
bool is_weapon_type() ​
Check if this is a weapon equipment type (override in WeaponType)
String get_category() ​
Get equipment type category for organization
bool add_body_part( body_part: GeneralSkeleton.BodySlot ) ​
Add a body part to the affected list (with validation)
bool add_attachment_point( attachment_point: GeneralSkeleton.AttachmentSlot ) ​
Add an attachment point to the used list (with validation)
bool remove_body_part( body_part: GeneralSkeleton.BodySlot ) ​
Remove a body part from the affected list
bool remove_attachment_point( attachment_point: GeneralSkeleton.AttachmentSlot ) ​
Remove an attachment point from the used list
void clear_all_mesh_slots() ​
Clear all mesh slot assignments
Dictionary get_debug_info() ​
Get a summary of this equipment type for debugging