<reponame>wzy9607/Anno1800CalculatorDataParser<gh_stars>0
# coding:utf-8

from .asset import Asset


class Text(Asset):
    """
    <Standard>
      <GUID>GUID</GUID> *
      <Name>Text</Name> *
    </Standard>
    <Text .../> *
    id      Standard.GUID               GUID of the text
    name    Standard.Name               name of the text
    text    Text.LocaText.English.Text  in-game English text of the text
    """
    template_name = "Text"
    
    def parse(self):
        """
        parse the node, the actual parsers are parse_node_{tag_name}
        """
        super().parse()
        self.parse_node_text(self.values_node.Text)

# coding:utf-8

from .asset import Asset


class Text(Asset):
    """
    <Standard>
      <GUID>GUID</GUID> *
      <Name>Text</Name> *
    </Standard>
    <Text .../> *
    id      Standard.GUID               GUID of the text
    name    Standard.Name               name of the text
    text    Text.LocaText.English.Text  in-game English text of the text
    """
    template_name = "Text"
    
    def parse(self):
        """
        parse the node, the actual parsers are parse_node_{tag_name}
        """
        super().parse()
        self.parse_node_text(self.values_node.Text)
# coding:utf-8 <Standard>
       <GUID>GUID</GUID> *
       <Name>Text</Name> *
     </Standard>
     <Text .../> *
     id      Standard.GUID               GUID of the text
     name    Standard.Name               name of the text
     text    Text.LocaText.English.Text  in-game English text of the text parse the node, the actual parsers are parse_node_{tag_name}