From The Mana World
< User:Jaxad0127
Revision as of 04:05, 24 March 2009 by Jaxad0127 (talk | contribs) (inital version)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is my plan for centralizing the net code under the merged client.

First, TMWServ's Net namespace needs to be changed (I vote for TMWserv as the new name). Then a new Net name space would be created to hide the details of the netcode (all the relevant #ifdefs). This allows us to move most (f not all) netcode out of the rest of the classes and better merge them. As we fix the netcode backends, only the functions in the Net namespace need to be changed.

Layout of the new Net namespace (this is a partial list, so please expand):

Net

  • Login
  • Char
  • Chat
  • Being
  • Player
    • IncStat
    • DecStat
  • NPC
    • Next/Continue
    • Close
    • List
    • Integer
    • String
    • (post functions)
  • Skill
    • Up
    • Use
  • Trade
    • AddItem
    • RemoveItem
    • SetMoney
    • Confirm
    • Finish
    • Cancel
  • Party
    • Create
    • Join
    • Leave
    • Kick
    • Chat
  • Guild
    • Create
    • Join
    • Chat
  • Storage
    • Open
    • Close
    • Store
    • Retrieve