polserver/pol-core/pol/module/guildmod.h
Kevin Eady 12d6186d10
Script option enhancements (#118)
* Fix SCRIPTOPT_CAN_ACCESS_OFFLINE_MOBILES

* Add SCRIPTOPT_SURVIVE_ATTACHED_DISCONNECT

* wip beginning work on templatization

* Use PolModule in pol-specific modules

* wip, creating PolModule with getXYZParam

* wip 1, moving getXYZ to UOExecutor

* compilable with PolObjectImp / PolApplicObj

* add type guard

* wip, change signatures

change signatures of script_method, script_method_id, and
custom_script_method

* compilable (windows)

* linux fixes

* namespace fixes

* remove uoexhelp

* formatting

* compilable

- move can_access_offline_mobiles back to uoexec
- add guildscrobj and partyscrobj sources
- move EGuildRefObjImp and EPartyRefObjImp
- wip, implement asUOExec
- formatting uoexec.cpp,.h

* finish uoexec() helper

* some cleanup
2020-02-08 09:21:35 +01:00

45 lines
757 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 );
Bscript::BObjectImp* mf_ListGuilds();
Bscript::BObjectImp* mf_CreateGuild();
Bscript::BObjectImp* mf_FindGuild();
Bscript::BObjectImp* mf_DestroyGuild();
static Bscript::BObjectImp* CreateGuildRefObjImp( Core::Guild* guild );
};
}
}
#endif