/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package scriptbuilder.structures.events;

import scriptbuilder.structures.ELEMENT;
import scriptbuilder.structures.I_XML_Writable;
import scriptbuilder.structures.ScriptEvent;
import scriptbuilder.structures.XMLWriter;

/**
 * Data model for a maintenance radio event. A maintenance radio transmission
 * has a string message.
 *
 * @author Bryan McGuffin
 */
public class MaintenanceRadioEvent extends ScriptEvent implements I_XML_Writable
{

    public MaintenanceRadioEvent()
    {
        super(ScriptEventType.MAINTENANCE_RADIO_EVENT);
    }

    public String message = "";

    @Override
    public String toXML()
    {
        String output = XMLWriter.simpleTag(message, ELEMENT.MAINTENANCE_RADIO);
        return output;
    }
}
