forked from citizenfx/fivem
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGameServer.cpp
More file actions
40 lines (27 loc) · 826 Bytes
/
GameServer.cpp
File metadata and controls
40 lines (27 loc) · 826 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
32
33
34
35
36
37
38
39
40
#include <StdInc.h>
#include "GameServer.h"
#include "GameServerInstance.h"
fx::GameServer::GameServer()
{
}
fx::GameServer::~GameServer()
{
}
void fx::GameServer::AttachToObject(ServerInstanceBase* instance)
{
}
std::string fx::GameServer::GetVariable(const std::string& key)
{
return "";
}
void fx::GameServer::DropClientv(const fx::ClientSharedPtr& client, const std::string& resourceName, ClientDropReason clientDropReason, const std::string& reason)
{
GameServerInstance::dropClientData.emplace(client, resourceName, clientDropReason, reason);
}
void fx::GameServer::ForceHeartbeatSoon()
{
}
void fx::GameServer::Broadcast(const net::Buffer& buffer)
{
GameServerInstance::broadcastData.emplace(buffer.GetBuffer(), buffer.GetBuffer() + buffer.GetLength());
}