mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
guild_base.cpp & .h include header cleanup
This commit is contained in:
parent
0c21f56ff3
commit
20200fd028
@ -16,7 +16,6 @@
|
|||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "debug.h"
|
|
||||||
#include "guild_base.h"
|
#include "guild_base.h"
|
||||||
#include "database.h"
|
#include "database.h"
|
||||||
#include "logsys.h"
|
#include "logsys.h"
|
||||||
|
|||||||
@ -3,12 +3,12 @@
|
|||||||
|
|
||||||
#include "guilds.h"
|
#include "guilds.h"
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
class Database;
|
class Database;
|
||||||
|
|
||||||
class CharGuildInfo {
|
class CharGuildInfo
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
//fields from `characer_`
|
//fields from `characer_`
|
||||||
uint32 char_id;
|
uint32 char_id;
|
||||||
@ -30,13 +30,17 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
//this object holds guild functionality shared between world and zone.
|
//this object holds guild functionality shared between world and zone.
|
||||||
class BaseGuildManager {
|
class BaseGuildManager
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
BaseGuildManager();
|
BaseGuildManager();
|
||||||
virtual ~BaseGuildManager();
|
virtual ~BaseGuildManager();
|
||||||
|
|
||||||
//this must be called before doing anything else with this object
|
//this must be called before doing anything else with this object
|
||||||
void SetDatabase(Database *db) { m_db = db; }
|
void SetDatabase(Database *db)
|
||||||
|
{
|
||||||
|
m_db = db;
|
||||||
|
}
|
||||||
|
|
||||||
bool LoadGuilds();
|
bool LoadGuilds();
|
||||||
bool RefreshGuild(uint32 guild_id);
|
bool RefreshGuild(uint32 guild_id);
|
||||||
@ -114,13 +118,15 @@ protected:
|
|||||||
|
|
||||||
bool LocalDeleteGuild(uint32 guild_id);
|
bool LocalDeleteGuild(uint32 guild_id);
|
||||||
|
|
||||||
class RankInfo {
|
class RankInfo
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
RankInfo();
|
RankInfo();
|
||||||
std::string name;
|
std::string name;
|
||||||
bool permissions[_MaxGuildAction];
|
bool permissions[_MaxGuildAction];
|
||||||
};
|
};
|
||||||
class GuildInfo {
|
class GuildInfo
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
GuildInfo();
|
GuildInfo();
|
||||||
std::string name;
|
std::string name;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user