27.02.2013, 07:43
Quote:
So this would be like, writing functions that natively don't exist but the compiler converts them in the background, right? LoadFromFile(g_Vehicles, "vehicles.txt"); would become multiple lines of code but the actual programmer won't see this as it is done by the precompiler.
That sounds absolutely amazing. I'm fairly good at JavaScript, unforunately we're covering Node.js and JSon this semester so I won't be able to help with the really advanced stuff, which I imagine will be all of this. Make it, please ![]() |
Saving enums automatically is actually currently doable, but only as raw data, which would be corrupted when the enum is modified (and it can't be manually modified unless you're a robot or a Y_Less).
Node.js is just like in the browser, but with different idioms and structuring (arguably). It's super-easy to get started with and lots of fun!
JSON is a JavaScript object stored as a string (essentially), so now you've learned all you need about JSON!