Package megamek.ai.dataset
Class GameDataSerializer
java.lang.Object
megamek.ai.dataset.EntityDataSerializer<GameData.Field,GameData>
megamek.ai.dataset.GameDataSerializer
Serializer for GameData to TSV format.
-
Field Summary
Fields inherited from class megamek.ai.dataset.EntityDataSerializer
FORMAT_HANDLERS, LOG_DECIMAL
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new GameDataSerializer with default serializers. -
Method Summary
Methods inherited from class megamek.ai.dataset.EntityDataSerializer
addFormatHandler, getHeaderLine, getNullValue
-
Constructor Details
-
GameDataSerializer
public GameDataSerializer()Creates a new GameDataSerializer with default serializers.
-
-
Method Details
-
serialize
Serializes game data to multiple lines of TSV format.- Overrides:
serialize
in classEntityDataSerializer<GameData.Field,
GameData> - Parameters:
data
- The game data to serialize- Returns:
- A TSV-formatted strings with multiple lines
-