mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* 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
40 lines
795 B
C++
40 lines
795 B
C++
/** @file
|
|
*
|
|
* @par History
|
|
* - 2008/07/08 Turley: Added mf_RandomIntMinMax - Return Random Value between...
|
|
*/
|
|
|
|
|
|
#ifndef __UTILMOD_H
|
|
#define __UTILMOD_H
|
|
|
|
#include "../../bscript/execmodl.h"
|
|
|
|
namespace Pol
|
|
{
|
|
namespace Bscript
|
|
{
|
|
class BObjectImp;
|
|
class Executor;
|
|
} // namespace Bscript
|
|
} // namespace Pol
|
|
|
|
namespace Pol
|
|
{
|
|
namespace Module
|
|
{
|
|
class UtilExecutorModule
|
|
: public Bscript::TmplExecutorModule<UtilExecutorModule, Bscript::ExecutorModule>
|
|
{
|
|
public:
|
|
UtilExecutorModule( Bscript::Executor& exec );
|
|
|
|
Bscript::BObjectImp* mf_RandomInt();
|
|
Bscript::BObjectImp* mf_RandomFloat();
|
|
Bscript::BObjectImp* mf_RandomDiceRoll();
|
|
Bscript::BObjectImp* mf_StrFormatTime();
|
|
Bscript::BObjectImp* mf_RandomIntMinMax();
|
|
};
|
|
} // namespace Module
|
|
} // namespace Pol
|
|
#endif // UTILMOD_H
|