Hi,
At the moment I have my game logic loading the static terrain and world information, and my player view doing the same in it's constructor. I want to try and make it a little more generic, as the paths are hardcoded right now. I am thinking to add either an 'InitializeWorld' or 'InitializeViews' event that will carry the game data path and the filename of the xml file containing the static world information. I already have a 'GameInitialized' event which is used to build the quadtree etc. once all initialization is complete.
Do you think adding an event to intialize the world is overkill, or should I just really pass this path information into the views constructor? Would you consider this kind of information to be an initialization of the views, or of the world? Techically I could still leave the code that creates the renderer etc. in the player view constructor, or I could move it into the initialize event. That would somewhat seperate the two. Not sure if that's a good thing or not.
Thanks for any advice.
Regards
Ray
At the moment I have my game logic loading the static terrain and world information, and my player view doing the same in it's constructor. I want to try and make it a little more generic, as the paths are hardcoded right now. I am thinking to add either an 'InitializeWorld' or 'InitializeViews' event that will carry the game data path and the filename of the xml file containing the static world information. I already have a 'GameInitialized' event which is used to build the quadtree etc. once all initialization is complete.
Do you think adding an event to intialize the world is overkill, or should I just really pass this path information into the views constructor? Would you consider this kind of information to be an initialization of the views, or of the world? Techically I could still leave the code that creates the renderer etc. in the player view constructor, or I could move it into the initialize event. That would somewhat seperate the two. Not sure if that's a good thing or not.
Thanks for any advice.
Regards
Ray
The post was edited 2 times, last by Raeldor ().