From The Mana World
m (add some stuff) |
(add more) |
||
Line 7: | Line 7: | ||
Net | Net | ||
*Login | *Login | ||
**Login(...) | |||
**ChangeEmail(...) | |||
**ChangePassword(...) | |||
**ChooseServer(serverId) | |||
*Char | *Char | ||
**ChooseChar(number) | |||
**NewChar(...) | |||
**DeleteChar(number, ...) | |||
*Chat | *Chat | ||
**Talk(text) | |||
**Me(text) | |||
**Msg(recipient, text) | |||
*Being | *Being | ||
**Attack(beingId) | |||
*Player | *Player | ||
*LocalPlayer | *LocalPlayer | ||
**IncStat | **Emote(emoteId) | ||
**DecStat | **IncStat(statId) | ||
**DecStat(statId) | |||
**SendLetter(recipient, text) | |||
*Inventory | |||
**Equip(slotNum) | |||
**Drop(slotNum, ammount) | |||
**Split(slotNum, ammount) | |||
*NPC | *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 | *Skill | ||
**Up | **Up(skillId) | ||
**Use | **Use(skillId) | ||
*Trade | *Trade | ||
**Request | **Request(beingId) | ||
**AddItem | **AddItem(slotNum, ammount) | ||
**RemoveItem | **RemoveItem(slotNum, ammount) | ||
**SetMoney | **SetMoney(ammount) | ||
**Confirm | **Confirm() | ||
**Finish | **Finish() | ||
**Cancel | **Cancel() | ||
*Party | *Party | ||
**Create | **Create() | ||
**Join | **Join(partyId) | ||
**Leave | **Leave() | ||
**Kick | **Kick(playerId) | ||
**Chat | **Chat(text) | ||
*Guild | *Guild | ||
**Create | **Create() | ||
**Join | **Join(guildId) | ||
**Chat | **Chat(text) | ||
*Storage | *Storage | ||
**Open | **Open() | ||
**Close | **Close() | ||
**Store | **Store(slotId, ammount) | ||
**Retrieve | **Retrieve(slotId, ammount) | ||
*Admin/GM (what's a good name for this?) | *Admin/GM (what's a good name for this?) | ||
**Announce | **Announce(text) | ||
**Kick | **Kick(id) | ||
**Ban | **Kick(name) | ||
**Ban(id) | |||
**Ban(name) | |||
**... | **... |
Revision as of 12:36, 24 March 2009
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. The methods in this namespace will probably be inlined, as they will eventually just call another method (in the majority of cases).
Layout of the new Net namespace (this is a partial list, so please expand):
Net
- 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 (what's a good name for this?)
- Announce(text)
- Kick(id)
- Kick(name)
- Ban(id)
- Ban(name)
- ...