polserver/pol-core/pol/module/guildmod.h
Fernando Rozenblit cbadd96b49
General cleanup of module includes (#253)
1) Made all module methods [[nodiscard]]. Glad to report no leaks were found. We should add the same to BObjects.

2) Protected members of NPCExecutorModule (were public before).
3) Added NPCExecutorModule::controlled_npc() so that osmod can access the npc's name and position.

4) Removed declarations for undefined functions:
- attributemod.h: mf_SetAttributeIntrinsicMod()
- osmod.h: mf_System_RPM()
- vitalmod.h: mf_SetVitalMaximumValue() and mf_SetVitalRegenRate()
2020-08-29 11:35:13 +02:00

45 lines
852 B
C++

/** @file
*
* @par History
*/
#ifndef GUILDSMOD_H
#define GUILDSMOD_H
#include "../../bscript/bobject.h"
#include "../polmodl.h"
namespace Pol
{
namespace Bscript
{
class Executor;
} // namespace Bscript
} // namespace Pol
namespace Pol
{
namespace Core
{
class Guild;
}
namespace Module
{
extern Bscript::BApplicObjType guild_type;
class GuildExecutorModule : public Bscript::TmplExecutorModule<GuildExecutorModule, Core::PolModule>
{
public:
GuildExecutorModule( Bscript::Executor& exec );
[[nodiscard]] Bscript::BObjectImp* mf_ListGuilds();
[[nodiscard]] Bscript::BObjectImp* mf_CreateGuild();
[[nodiscard]] Bscript::BObjectImp* mf_FindGuild();
[[nodiscard]] Bscript::BObjectImp* mf_DestroyGuild();
static Bscript::BObjectImp* CreateGuildRefObjImp( Core::Guild* guild );
};
} // namespace Module
} // namespace Pol
#endif