mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-06-19 15:13:47 +02:00
37 lines
1.4 KiB
C++
37 lines
1.4 KiB
C++
/**
|
|
* Tibia GIMUD Server - a free and open-source MMORPG server emulator
|
|
* Copyright (C) 2019 Sabrehaven and Mark Samman <mark.samman@gmail.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
#ifndef FS_IOGUILD_H_EF9ACEBA0B844C388B70FF52E69F1AFF
|
|
#define FS_IOGUILD_H_EF9ACEBA0B844C388B70FF52E69F1AFF
|
|
|
|
typedef std::vector<uint32_t> GuildWarList;
|
|
|
|
class IOGuild
|
|
{
|
|
public:
|
|
static uint32_t getGuildIdByName(const std::string& name);
|
|
static void getWarList(uint32_t guildId, GuildWarList& guildWarList);
|
|
|
|
static uint64_t getGuildBalance(uint32_t id);
|
|
static bool increaseGuildBankBalance(uint32_t guid, uint64_t bankBalance);
|
|
static bool decreaseGuildBankBalance(uint32_t guid, uint64_t bankBalance);
|
|
};
|
|
|
|
#endif
|