scone
scone copied to clipboard
Replace sconeSetup
sconeSetup
is an overrideable delegate which is run on local thread start only once.
By default it sets up up a default frame
and input
, but requires the user to write the code themselves.
This could be replaced with and enum instead.
enum SconeModule {
none = 0,
frame = 1,
input = 2,
// todo audio = 4,
}
I would also like to safeguard these setting by putting them in a container which errors if the settings are modified after initialization. I am thinking of something like this (unsure of implementation):
// modifying in other place than 'shared static this' will error
shared static this()
{
scone.modules = SconeModule.frame | SconeModule.audio;
}