ACF-3
ACF-3 copied to clipboard
[SUGGESTION] Use namespaces to organize code
Short Description
At the moment, everything except for a few exceptions, the one I remember from the top of my head being the Permissions stuff, is thrown inside the ACF
global table. One way to organize this would be to divide everything into smaller tables that only contain the stuff related to a certain aspect of ACF, such as:
- ACF.Ballistics
- ACF.Damage
- ACF.Utilities
- etc.
References (Optional)
Although I feel like everything inside this file could be improved, I like the fact everything is inside the ACF.Permissions
table.
https://github.com/Stooberton/ACF-3/blob/master/lua/acf/base/permission/sv_permissions.lua
Current changes on 773363d allow ACF to automatically create namespaces based on folder structure. This feature should be used in all future additions.