originally posted in:BungieNetPlatform
I cleaned up the little tool I was using to transform Javascript to C#, so here it is if you would like to use/add to it.
https://github.com/dazarobbo/PlatformTransformer
It doesn't try to fill in method definitions or try too hard in figuring out types, but it does set up for you the classes and enums, and their members. I've also thrown in the JS function source in C# methods in a comment (at least by default).
[quote]Quick instructions:
1. platform.lib.min.js should be a copy of the most up-to-date one from bungie.net. The one that's there will most certainly be outdated by the time you read this.
2. Open index.html in your browser. Choose the language (only C# at the moment). Hit Start.
3. A separate file will be created for each Javascript "class" and "enum" which will then be downloaded (it's all done locally).[/quote]
English
-
Nicely done!