toXMLNode method

  1. @override
XMLNode toXMLNode()
override

Implementation

@override
XMLNode toXMLNode() => XMLNode(
    'project',
    {'name': name, ...extraAttributes},
    XMLChildren([
      XMLNode('stories', {},
          XMLChildren(stories.map((it) => it.toXMLNode()).toList())),
      XMLNode('variables', {},
          XMLChildren(variables.map((it) => it.toXMLNode()).toList())),
      XMLNode('backgrounds', {},
          XMLChildren(backgrounds.map((it) => it.toXMLNode()).toList())),
      XMLNode('sounds', {},
          XMLChildren(sounds.map((it) => it.toXMLNode()).toList())),
      XMLNode('scenes', {},
          XMLChildren(scenes.map((it) => it.toXMLNode()).toList())),
      XMLNode('characters', {},
          XMLChildren(characters.map((it) => it.toXMLNode()).toList()))
    ]));