Re: issue with multiple variables in if statement

I have put all of my global variables in a dependency injection. I hope that will do the trick for now. I should focus on settings next. I know they are going to be a dictionary, but should the dictionary be global? Or in its own class? I know how to save and load them, but I am not sure where the best place to put the dictionary would be. For reference, the options will load when the main function is called, that is the only place for now. The user will be able to configure them in a menu only accessible via the main menu. But a few options will be able to be changed in game. I may split the options into 2 dictionaries, one for host options when hosting a game, and another for options that won't be related to hosting. Keep in mind this game is not online yet and I do not plan to make it online for awhile, but I will still use the host settings when starting an offline game. Either I could do 2 dictionaries, or make 2 save functions, one that doesn't interfeer with host values. My aim here is for the host of the game to set the settings for everyone else, but of course we don't want to accidentally overwrite everyone else's host settings if at any point they save options. I may also call a load options or load host options function after the online game or when exiting or disconnecting. If I am making this more complicated than i should be let me know.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : ironcross32 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : ironcross32 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector

Reply via email to