Including files
#6

With this technique, if you want to add a new functionality you have to make edits in twenty different files. This means callbacks eventually become bloated with unrelated stuff and that the functionality is spread out in all those files.

If you have one file per functionality you keep everything in one place. It also means that you can disable the entire system by commenting one include line in the main gamemode. The (hooked) callbacks in that file are clear and concise and ONLY contain the code for THAT specific functionality.
Reply


Messages In This Thread
Including files - by Jonesy96 - 31.05.2016, 23:11
Re: Including files - by Jonesy96 - 01.06.2016, 08:45
Re: Including files - by Vince - 01.06.2016, 08:50
Re: Including files - by xTURBOx - 01.06.2016, 09:03
Re: Including files - by Jonesy96 - 01.06.2016, 09:10
Re: Including files - by Vince - 01.06.2016, 09:32
Re: Including files - by Jonesy96 - 01.06.2016, 09:52
Re: Including files - by Konstantinos - 01.06.2016, 10:06
Re: Including files - by Jonesy96 - 01.06.2016, 10:18
Re: Including files - by Jonesy96 - 01.06.2016, 14:06

Forum Jump:


Users browsing this thread: 1 Guest(s)