Skip to content
This repository was archived by the owner on Oct 8, 2022. It is now read-only.
This repository was archived by the owner on Oct 8, 2022. It is now read-only.

Replace sconeSetup #70

@vladdeSV

Description

@vladdeSV

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions