Multiple Extension
Posted: 02 Jan 2012, 21:46
Hi all !
I'm actually developping a game with this logic :
- login
- Then i do a PHP request to retrieive users that can play and then i create a room game for them. The room is created by the server and have its own extension to manage connection and disconnection.
- When all the users are connected to this new room i send a response to my client and i create a new AS3 class that use another extension that is the game logic.
But i think i'm wrong by doing this, because my last extension for the game logic is not associated to the room and is initialised at the start of the server. I do this because there will be different games to play randomly in order to clarify my code and not to put all my code in one extension for 6 games...
So i'm wondering if it's possible to instantiate new extension in my "general" extension
I've seen this post : http://www.smartfoxserver.com/forums/viewtopic.php?t=11724&highlight=add+extension+another+extension
Or is it possible to attach multiple extension to one room ? Is it a good way ?
I really appreciate if you can help me
Thanks
I'm actually developping a game with this logic :
- login
- Then i do a PHP request to retrieive users that can play and then i create a room game for them. The room is created by the server and have its own extension to manage connection and disconnection.
- When all the users are connected to this new room i send a response to my client and i create a new AS3 class that use another extension that is the game logic.
But i think i'm wrong by doing this, because my last extension for the game logic is not associated to the room and is initialised at the start of the server. I do this because there will be different games to play randomly in order to clarify my code and not to put all my code in one extension for 6 games...
So i'm wondering if it's possible to instantiate new extension in my "general" extension
I've seen this post : http://www.smartfoxserver.com/forums/viewtopic.php?t=11724&highlight=add+extension+another+extension
Or is it possible to attach multiple extension to one room ? Is it a good way ?
I really appreciate if you can help me
Thanks