jfx. Posted October 3, 2020 Report Share Posted October 3, 2020 Hey, I was just wondering why you make a languages.js file for your GC modules (node-tf2, node-globaloffensive). Is it just so you know which ones your module supports, or because you like the cleaner names? I can see it aiding performance because you can grab the value straight away without having to loop through heaps of enum objects. Was just curious as to why, I wanted to work on my own GC module and wanted to hear your thoughts! Cheers. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted October 3, 2020 Report Share Posted October 3, 2020 (edited) I'm not sure I really ever put any significant thought into how that particular part of the module architecture is designed. Thinking back, it may not have been so simple to access enums out of protobufs back when I first wrote node-tf2, and I guess I also liked having all the message names in one place rather than split throughout a bunch of protobuf files. node-globaloffensive is really just a port of node-tf2 over to CS:GO. I probably would have done it differently had I written it from scratch. Edited October 3, 2020 by Dr. McKay Quote Link to comment Share on other sites More sharing options...
jfx. Posted October 4, 2020 Author Report Share Posted October 4, 2020 Cool, thanks for answering Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.