Lux-Vacuos / Voxel

Sandbox survival game created with Light Engine (Development halted due to other projects)
https://luxvacuos.net/projects
GNU General Public License v3.0
21 stars 6 forks source link

Singleton #42

Closed danirod closed 8 years ago

danirod commented 8 years ago

GameResources has to be initialized in the preInit loop. It has a lot of things that are accesed via get. Since only one possible instance of those things can be, why not use Singleton instead? I could already do that but since some people has strong arguments against singleton I wanna ask before heading to that.

Guerra24 commented 8 years ago

Go ahead, you can do.

Guerra24 commented 8 years ago

Implemented in 40ab184.

Guerra24 commented 8 years ago

Due to the intensive use of GameResources as a parameter, not be implemented as Singleton yet.

danirod commented 8 years ago

Yup, delayed for now.

EDIT. However, keep the work, I'll recatch later.

Guerra24 commented 8 years ago

Finally after three months its implemented (partially).