Pivity

Module System - Feedback appreciated

Last read Never
#1

I've started working on a module system I intend on using for my own server. The rough idea is that you can define your own module and have it depend on other modules (at which point the order of loading will be decided). Possible modules might be libraries or utilities such as

  1. logging
  2. storage (e.g., database)
  3. configuration loading
  4. ...

This is the current state I have, and I was hoping for some feedback or suggestions from the community. You can check it out here:


https://github.com/game-crew-ch/modulus/pull/1

(This is the actual module system, which builds the dependency graph and loads an 'init.lua' file per module)

https://github.com/game-crew-ch/modulus-prefix-loader/pull/1(This is an example module. You can depend on it (and configure the loader) to have it load all files prefixed by sv_, cl_, or sh_)

Winner x 1
Users viewing this thread
Nobody