Hey everybody! So I was sitting on 'the can' when I hate a great idea, an application that lets you build a technology and generates the xml for you!
I've already written the base classes for it and one of the forms. Here is the basic architecture behind it:
Tag class:
String Name
String Value
and a GetXML method overloaded twice
Technology class:
String Type
String ID
Tag DisplayName, Description, Details, Cost, Bonuses(this is an array), Model, AIValue, Requires
Those are the base classes i'm using. The Name will be what the tag is, and this is set in the Technology class' constructor ( for example, the 'Name' property of the DisplayName Tag object is 'DisplayName'). The 'Value' property is self-explanatory.
The main form will consist of a listbox of created techs, an Add button, Delete button, Edit button, Clear List button, and Generate XML button.
The second form will be where you specify the values of the various tags. However, I'm not sure how to do the Bonuses. I'm pretty sure I'll make a third form with a dropdown list of the various bonus names and a text box to enter the values, but I need to make sure there aren't duplicate entries.
I know most of you are smart enough not to do something that would break the xml, but there will be the occasional user who says 'my ex em el don't work! y u macke badd prograhm?' Which is why making a robust program is hard, because idiots can use computers too.
Anyway, what do you guys think? I'll try to get it finished asap. When I'm finished I'll be needing beta testers, so PM me your emails and I'll send you the program, but not until i'm finished!
Oh yeah, after I get this one to work I want to make one for Planetary Improvements and some of the others. But I'm starting with Techs because I'm familiar with it.