lundi 6 avril 2015

Is it appropriate to Create a server instance with a Singleton?

I'm creating a multiplayer game and I need to program a server. Now I'm thinking of designing it with the s ingleton pattern because I only want one instance of the server that all players connect to. I'm relatively new to design patterns and I've seen a lot of negativity towards using the singleton pattern so I'm not sure if it's appropriate.


I'd appreciate any feedback and will try respond as soon as possible if you need more information on my problem.


Aucun commentaire:

Enregistrer un commentaire