What the hell! C# question

Miscellaneous Forums/General Discussion/What the hell! C# question

Or, if you really need to pass a lot of information, such as configuration, make it as a class. (this is all C++ tho, but i'm pretty sure it works in C#).
class EngineInitialization
{
public:
    int x; // (bad practice; for sake of simplicity)
    int y;
    EngineInitialization();
}

then, in the constructor, initialize to your default params:
EngineInitialization::EngineInitialization()
{
    x = 1280;
    y = 960;
}

then, in your codez, you call to it;
int main()
{
    EngineInitialization init;
    init.y = 1024;
    engineInit( init );
}

there you go.