ACF-3 icon indicating copy to clipboard operation
ACF-3 copied to clipboard

[SUGGESTION] Use namespaces to organize code

Open TwistedTail opened this issue 3 years ago • 1 comments

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

TwistedTail avatar Mar 02 '21 21:03 TwistedTail

Current changes on 773363d allow ACF to automatically create namespaces based on folder structure. This feature should be used in all future additions.

TwistedTail avatar Jul 07 '22 05:07 TwistedTail