I've been trying to make this work in various ways, the closest I've gotten is to use IronRuby to load the .NET XML serialization libraries to serialize the loaded data, but it still won't let me serialize anything into XML, and I don't seem to be able to collect the data for usage by using IronRuby in C# either.
In preference I would like to have a good way to convert the files to simple XML structures that I can de-serialize and write the necessary classes for in C#.
Imagine an output like this for a map data file:
I just used the Map struct as an example. I didn't include all the attributes, just created the basic tree setup that I would like it to contain. This should be easily doable, but I'm still learning and I seem to be unable to find a solution.
As a note, it doesn't matter what medium is used to convert the files. The actual converting won't happen on runtime in the project I'm working on, just the deserialization of the files to load them into it.
Any help would be greatly appreciated!
Thanks,
Sarkilas
In preference I would like to have a good way to convert the files to simple XML structures that I can de-serialize and write the necessary classes for in C#.
Imagine an output like this for a map data file:
Code:
<Map>
<tileset_id>1</tileset_id>
<width>50</width>
<height>50</height>
<autoplay_bgm>true</autoplay_bgm>
<bgm>Track Name</bgm>
<autoplay_bgs>true</autoplay_bgs>
<bgs>Sound Name</bgs>
<events>
<Event>
<id>1</id>
<name>Event Name</name>
<x>1</x>
<y>1</y>
<pages>
<Page>
<Condition>
<switch1_valid>true</switch1_valid>
</Condition>
<graphic>data</graphic>
</Page>
</pages>
</Event>
</events>
</Map>
As a note, it doesn't matter what medium is used to convert the files. The actual converting won't happen on runtime in the project I'm working on, just the deserialization of the files to load them into it.
Any help would be greatly appreciated!
Thanks,
Sarkilas