Class StructureType

All Implemented Interfaces:
ITechnology

public class StructureType extends MiscType
Equipment definition for an internal structure system.
  • Constructor Details

    • StructureType

      public StructureType(int structureTypeId)
  • Method Details

    • getStructureTypeId

      public int getStructureTypeId()
    • getYamlTypeName

      protected String getYamlTypeName()
      Description copied from class: EquipmentType
      Returns the YAML type name for this equipment type. Subclasses should override this to return their specific type name.
      Overrides:
      getYamlTypeName in class MiscType
      Returns:
      The YAML type name (e.g., "weapon", "ammo", "misc", "armor")
    • getYamlData

      public Map<String,Object> getYamlData()
      Description copied from class: EquipmentType
      Constructs a map containing the YAML-serializable data for this equipment type. Subclasses should override this method to add type-specific data.
      Overrides:
      getYamlData in class MiscType
      Returns:
      A map containing the YAML-serializable data for this equipment type.
    • addLookupName

      public void addLookupName(String s, boolean includeInNames)
      Overrides:
      addLookupName in class EquipmentType