metro_2 v0.1.1 Metro2.File

This module defines the initial struct of the the metro2 file struct, further it contains the serialisation method, wich ultimately returns a string containing the struct as valid metro2 file content.

Summary

Functions

Add a base segement to the base segment list in the file struct

converts and serializes a Metro2.File struct into a Metro2 conform string

Functions

add_base_segment(file, segment)

Add a base segement to the base segment list in the file struct.

serialize(file)

converts and serializes a Metro2.File struct into a Metro2 conform string