Guild Wars Template Parser
Using the wiki guide on the Skill Template Format and the Equipment Template Format I finally built a set of objects to help encode and decode the templates.
I have created two libraries, one that can be consumed through managed code, and another that can be used in php web pages.
There are two parsers; the EquipmentParser will parse an equipment template code and serve up an a list of EquipmentItem objects. The other being a SkillBuildParser will serve up a Build object.
I will be maintaining both libraries together.
Features:
- Supports old and new style builds
- Very easy to implement a new template parser using the TemplateParserBase
Whilst actually using the template parsers I began to find it difficult to use the enumerations that I have hard coded into the assemblies.
It also didn’t sit well with me that the library was so high maintenance.
So I have updated the library and removed the enumerations altogether.
This allows everyone to use the Skill/Item IDs and provides an excellent oppourtunity to tie the objects into a database.
Also means that unless Arena Net change the specs (which I cannot see them doing anytime soon) the library should be compatible for a very long time