I had previously downloaded the server and client code and pulled it up, looked through the files, and decided to put it back down again. I decided to pull it back up and try and break it back down like I did with SmartFoxServer. I did this with the MMO demo that was put together. It takes some time to figure out exactly what is going on and so I have decided to rebuild their demo from scratch in an effort to explain how things work and why the designs were chosen. Feel free to follow along for the next several posts while we proceed through the following steps:
- Build the blank server and simple client
- Build a basic operation and operation handlers (only because I hate seeing 15 functions in a class that a switch statement calls based on a message type)
- Send events and build an event handler
- Build a State class that will handle only the Events applicable to the client based on its current state.
- Setup NHibernate so we can build models and effectively access a database.
This is just a rough outline of what I'd like to accomplish over the coming weeks. Stay tuned as we begin our journey.
No comments:
Post a Comment