ItsDeltin / Overwatch-Script-To-Workshop

Converts scripts to Overwatch workshops.
209 stars 26 forks source link

Support project-wide settings #214

Open ItsDeltin opened 3 years ago

ItsDeltin commented 3 years ago

The settings file will be located in the project's folder rather than being imported, because imports are handled after lexing+parsing and some settings may change how lexing+parsing works.

Protowalker commented 3 years ago

The current approach I'm taking should be backwards-compatible with the old way of doing imports. import "test.del"; will act differently then import Test

ItsDeltin commented 3 years ago

There should be settings that can rename ostw-generated variables, ex:

{
    "Generated Variables": {
        "Extended Global Name": "_extendedGlobalVariables",
        "Extended Global Slot": 127,

        "Extended Player Name": "_extendedPlayerVariables",
        "Extended Player Slot": 127,

        "Object Variable Names": [
            "_objectVariable_0",
            "_objectVariable_1",
            "_objectVariable_2"
        ]
    }
}
ItsDeltin commented 3 years ago

In development in the 2.0-project-settings branch