mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-05 06:50:04 +00:00
55 lines
1.7 KiB
C++
55 lines
1.7 KiB
C++
#pragma once
|
|
|
|
#include "Player.hpp"
|
|
#include "CNProtocol.hpp"
|
|
#include "CNStructs.hpp"
|
|
#include "CNShardServer.hpp"
|
|
|
|
#include <map>
|
|
#include <list>
|
|
|
|
namespace BuddyManager {
|
|
void init();
|
|
|
|
// Buddy list
|
|
void refreshBuddyList(CNSocket* sock);
|
|
|
|
// Buddy requests
|
|
void requestBuddy(CNSocket* sock, CNPacketData* data);
|
|
void reqBuddyByName(CNSocket* sock, CNPacketData* data);
|
|
|
|
// Buddy accepting
|
|
void reqAcceptBuddy(CNSocket* sock, CNPacketData* data);
|
|
void reqFindNameBuddyAccept(CNSocket* sock, CNPacketData* data);
|
|
|
|
// Buddy Messaging
|
|
void reqBuddyFreechat(CNSocket* sock, CNPacketData* data);
|
|
void reqBuddyMenuchat(CNSocket* sock, CNPacketData* data);
|
|
|
|
// Getting buddy state
|
|
void reqPktGetBuddyState(CNSocket* sock, CNPacketData* data);
|
|
|
|
// Blocking/removing buddies
|
|
void reqBuddyBlock(CNSocket* sock, CNPacketData* data);
|
|
void reqBuddyDelete(CNSocket* sock, CNPacketData* data);
|
|
|
|
// Buddy warping
|
|
void reqBuddyWarp(CNSocket* sock, CNPacketData* data);
|
|
|
|
// Email methods
|
|
void emailUpdateCheck(CNSocket* sock, CNPacketData* data);
|
|
void emailReceivePageList(CNSocket* sock, CNPacketData* data);
|
|
void emailRead(CNSocket* sock, CNPacketData* data);
|
|
void emailReceiveTaros(CNSocket* sock, CNPacketData* data);
|
|
void emailReceiveItemSingle(CNSocket* sock, CNPacketData* data);
|
|
void emailReceiveItemAll(CNSocket* sock, CNPacketData* data);
|
|
void emailDelete(CNSocket* sock, CNPacketData* data);
|
|
void emailSend(CNSocket* sock, CNPacketData* data);
|
|
|
|
// helper methods
|
|
|
|
// Name checks
|
|
int getAvailableBuddySlot(Player* plr);
|
|
bool NameCheck(char16_t reqName[], char16_t resName[], int sizeOfReq, int sizeOfRes); // checks if the request and requested player's names match
|
|
}
|