From The Mana World
< User:Jaxad0127
Revision as of 15:44, 24 March 2009 by Jaxad0127 (talk | contribs) (rework structure of new Net)

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 namespace would be created to store references to the specific network back-end needed.

Here are the functions the generic back end needs (organized by type)

Login

  • Login(...)
  • ChangeEmail(...)
  • ChangePassword(...)
  • ChooseServer(serverId)

Char

  • ChooseChar(number)
  • NewChar(...)
  • DeleteChar(number, ...)

Chat

  • Talk(text)
  • Me(text)
  • Msg(recipient, text)

Being

  • Attack(beingId)
  • Player
  • LocalPlayer
  • Emote(emoteId)
  • IncStat(statId)
  • DecStat(statId)
  • SendLetter(recipient, text)

Inventory

  • Equip(slotNum)
  • Drop(slotNum, ammount)
  • Split(slotNum, ammount)

NPC

  • Talk(npcId)
  • NextDialog(npcId)
  • CloseDialog(npcId)
  • ListInput(npcId, value)
  • IntegerInput(npcId, value)
  • StringIntput(npcId, value)

Shop

  • Start(beingId)
  • Buy(beingId)
  • Sell(beingId)
  • BuyItem(beingId, itemId, ammount)
  • SellItem(beingId, itemId, ammount)
  • End(beingId)

Skill

  • Up(skillId)
  • Use(skillId)

Trade

  • Request(beingId)
  • AddItem(slotNum, ammount)
  • RemoveItem(slotNum, ammount)
  • SetMoney(ammount)
  • Confirm()
  • Finish()
  • Cancel()

Party

  • Create()
  • Join(partyId)
  • Leave()
  • Kick(playerId)
  • Chat(text)

Guild

  • Create()
  • Join(guildId)
  • Chat(text)

Storage

  • Open()
  • Close()
  • Store(slotId, ammount)
  • Retrieve(slotId, ammount)

Admin/GM

  • Announce(text)
  • Kick(id)
  • Kick(name)
  • Ban(id)
  • Ban(name)
  • ...