Dehardcode global variables
OpenMW refers to global variables by their hardcoded names as they are defined in Morrowind content files. This prevents from loading content files for other games without loading Morrowind files. For example Oblivion.esm doesn't have dayspassed
but it has GameDaysPassed
. It sould be possible to specify a custom name for a variable representing the same meaning.
Some of variables may not have alternatives with the same meaning. For them we should separate logic but this is out of the scope for this issue. Let's assume if variable is specific to Morrowind mechanics, there is no need to make it work for Oblivion etc.
The set of cutomizable variables should be as small as possible. This set must be defined for each game to be run by OpenMW.
The first step is to define constant variables of custom type for all hardcoded string literals representing global variables. Once we list them in a single place it should be clear to see the scope.