08.02.2017, 11:02
Changing a variable-name in multiple files isn't a problem if you use Notepad++.
I have all the files open at the same time and you can simply search and replace in all open files at once.
I admit that I cannot have code for the housing system (for example) all in one file, because everything in my gamemode is mixed up.
Alot of code uses something from another system as well.
Effectively splitting code isn't really possible.
In the end, I might put all code into one huge file, but it's always easy to have several files open at once and switch between them instead of having everything in one file during coding and scrolling all the time.
Too bad we don't have true objects to code with, with constructors and destructors and class-functions etc.
You can still write small functions that can be used to set/get data from an array with enums, then you don't need to use variable-names everywhere.
Then the variable names inside enums are only used by the set/get functions and nowhere else.
I have all the files open at the same time and you can simply search and replace in all open files at once.
I admit that I cannot have code for the housing system (for example) all in one file, because everything in my gamemode is mixed up.
Alot of code uses something from another system as well.
Effectively splitting code isn't really possible.
In the end, I might put all code into one huge file, but it's always easy to have several files open at once and switch between them instead of having everything in one file during coding and scrolling all the time.
Too bad we don't have true objects to code with, with constructors and destructors and class-functions etc.
You can still write small functions that can be used to set/get data from an array with enums, then you don't need to use variable-names everywhere.
Then the variable names inside enums are only used by the set/get functions and nowhere else.

