blob: 51c67f2bec463127be3b4537f5f9ade293ecb6d3 (
plain) (
blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "cPlugin.h"
cPlugin::cPlugin()
: m_Version( 0 )
, m_Language( E_CPP )
, m_bCanBindCommands( false )
{
}
cPlugin::~cPlugin()
{
}
// bool cPlugin::Initialize()
// {
// LOG("cPlugin::Initialize()");
// return false;
// }
void cPlugin::Tick(float a_Dt)
{
(void)a_Dt;
}
bool cPlugin::OnBlockPlace( cPacket_BlockPlace* a_PacketData, cPlayer* a_Player )
{
(void)a_PacketData;
(void)a_Player;
return false;
}
bool cPlugin::OnCollectItem( cPickup* a_Pickup, cPlayer* a_Player )
{
(void)a_Pickup;
(void)a_Player;
return false;
}
bool cPlugin::OnDisconnect( std::string a_Reason, cPlayer* a_Player )
{
(void)a_Reason;
(void)a_Player;
return false;
}
bool cPlugin::OnChat( const char* a_Chat, cPlayer* a_Player )
{
(void)a_Chat;
(void)a_Player;
return false;
}
bool cPlugin::OnLogin( cPacket_Login* a_PacketData )
{
(void)a_PacketData;
return false;
}
void cPlugin::OnPlayerSpawn( cPlayer* a_Player )
{
(void)a_Player;
}
bool cPlugin::OnPlayerJoin( cPlayer* a_Player )
{
(void)a_Player;
return false;
}
void cPlugin::AddCommand( std::string & a_Command, std::string & a_Description, std::string & a_Permission )
{
CommandStruct Command;
Command.Command = a_Command;
Command.Description = a_Description;
Command.Permission = a_Permission;
m_Commands.push_back( Command );
}
|