-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProfile.hpp
More file actions
31 lines (30 loc) · 910 Bytes
/
Profile.hpp
File metadata and controls
31 lines (30 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
#include <cstdint>
#include "ItemsPlayer.hpp"
#include "GameRoom.hpp"
//#include "GameRoom.hpp"
class Client;
class GameRoom;
class IqClass;
struct Player {
public:
WARFACE_TEAMS Team = warface;
int class_preserence;
void SyncRoom(Client* client, IqClass* iq);
void Serialize();
ItemsPlayer* items = new ItemsPlayer();
uint64_t profile_id = 0;
std::vector<ItemsPlayer> items_list;
GameRoom* Room = NULL;
void OpenRoom(std::string room_name);
const char* GetRoomName();
void SetRoomName(std::string roomname);
std::vector<pugi::xml_document> process_directories(const std::string& dir);
int GetIdRooms();
int CountPlayersRoom();
std::vector<GameRoom*> GetRooms();
void SetSettingsRoom(pugi::xml_node node);
pugi::xml_node SerializeRoom(Client* client, const char* local_name);
uint32_t GetRevisionRoom();
std::vector<Player*> GetRoomPlayers();
};