Class YamlSerializerAmmoType

java.lang.Object
megamek.common.util.YamlSerializerEquipmentType
megamek.common.util.YamlSerializerAmmoType

public class YamlSerializerAmmoType extends YamlSerializerEquipmentType
  • Field Details

  • Constructor Details

    • YamlSerializerAmmoType

      public YamlSerializerAmmoType()
      Constructor for YamlSerializerAmmoType.
  • Method Details

    • serialize

      public Map<String,Object> serialize(AmmoType ammo)
      Constructs a map containing the YAML-serializable data for the given ammo type.
      Parameters:
      ammo - The ammo type to serialize
      Returns:
      A map containing the YAML-serializable data for the equipment type