mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
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()
52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
/** @file
|
|
*
|
|
* @par History
|
|
* - 2009/12/18 Turley: added CreateDirectory() & ListDirectory()
|
|
*/
|
|
|
|
|
|
#ifndef FILEMOD_H
|
|
#define FILEMOD_H
|
|
|
|
#include "../../bscript/execmodl.h"
|
|
|
|
namespace Pol
|
|
{
|
|
namespace Bscript
|
|
{
|
|
class BObjectImp;
|
|
class ExecutorModule;
|
|
} // namespace Bscript
|
|
} // namespace Pol
|
|
|
|
namespace Pol
|
|
{
|
|
namespace Bscript
|
|
{
|
|
class Executor;
|
|
}
|
|
|
|
namespace Module
|
|
{
|
|
class FileAccessExecutorModule
|
|
: public Bscript::TmplExecutorModule<FileAccessExecutorModule, Bscript::ExecutorModule>
|
|
{
|
|
public:
|
|
FileAccessExecutorModule( Bscript::Executor& exec );
|
|
|
|
[[nodiscard]] Bscript::BObjectImp* mf_FileExists();
|
|
[[nodiscard]] Bscript::BObjectImp* mf_ReadFile();
|
|
[[nodiscard]] Bscript::BObjectImp* mf_WriteFile();
|
|
[[nodiscard]] Bscript::BObjectImp* mf_AppendToFile();
|
|
[[nodiscard]] Bscript::BObjectImp* mf_LogToFile();
|
|
[[nodiscard]] Bscript::BObjectImp* mf_OpenBinaryFile();
|
|
[[nodiscard]] Bscript::BObjectImp* mf_CreateDirectory();
|
|
[[nodiscard]] Bscript::BObjectImp* mf_ListDirectory();
|
|
[[nodiscard]] Bscript::BObjectImp* mf_OpenXMLFile();
|
|
[[nodiscard]] Bscript::BObjectImp* mf_CreateXMLFile();
|
|
};
|
|
|
|
Bscript::ExecutorModule* CreateFileAccessExecutorModule( Bscript::Executor& exec );
|
|
} // namespace Module
|
|
} // namespace Pol
|
|
#endif
|