mirror of
https://github.com/edubart/otclient.git
synced 2025-12-14 12:49:47 +01:00
doc and luabinder changes
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "declarations.h"
|
||||
|
||||
// @bindsingleton g_clock
|
||||
class Clock
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -26,10 +26,12 @@
|
||||
#include "declarations.h"
|
||||
#include <framework/otml/declarations.h>
|
||||
|
||||
// @bindsingleton g_configs
|
||||
class ConfigManager
|
||||
{
|
||||
public:
|
||||
ConfigManager();
|
||||
|
||||
bool load(const std::string& file);
|
||||
bool save();
|
||||
void clear();
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "clock.h"
|
||||
#include "scheduledevent.h"
|
||||
|
||||
// @bindsingleton g_eventDispatcher
|
||||
class EventDispatcher
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -24,10 +24,12 @@
|
||||
#define FILESTREAM_H
|
||||
|
||||
#include "declarations.h"
|
||||
#include <framework/luascript/luaobject.h>
|
||||
|
||||
struct PHYSFS_File;
|
||||
|
||||
class FileStream
|
||||
// @bindclass
|
||||
class FileStream : public LuaObject
|
||||
{
|
||||
public:
|
||||
FileStream(const std::string& name, PHYSFS_File *fileHandle);
|
||||
@@ -44,8 +46,6 @@ public:
|
||||
int tell();
|
||||
std::string name() { return m_name; }
|
||||
|
||||
std::string readAll();
|
||||
|
||||
uint8 getU8();
|
||||
uint16 getU16();
|
||||
uint32 getU32();
|
||||
|
||||
@@ -32,6 +32,7 @@ struct LogMessage {
|
||||
std::size_t when;
|
||||
};
|
||||
|
||||
// @bindsingleton g_logger
|
||||
class Logger
|
||||
{
|
||||
enum {
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <framework/otml/declarations.h>
|
||||
#include <framework/luascript/luaobject.h>
|
||||
|
||||
// @bindclass
|
||||
class Module : public LuaObject
|
||||
{
|
||||
public:
|
||||
@@ -52,6 +53,7 @@ public:
|
||||
bool isAutoLoad() { return m_autoLoad; }
|
||||
int getAutoLoadPriority() { return m_autoLoadPriority; }
|
||||
|
||||
// @dontbind
|
||||
ModulePtr asModule() { return std::static_pointer_cast<Module>(shared_from_this()); }
|
||||
|
||||
protected:
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "module.h"
|
||||
|
||||
// @bindsingleton g_modules
|
||||
class ModuleManager
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -25,10 +25,13 @@
|
||||
|
||||
#include "declarations.h"
|
||||
|
||||
// @bindsingleton g_resources
|
||||
class ResourceManager
|
||||
{
|
||||
public:
|
||||
// @dontbind
|
||||
void init(const char *argv0);
|
||||
// @dontbind
|
||||
void terminate();
|
||||
|
||||
void discoverWorkDir(const std::string& appName, const std::string& existentFile);
|
||||
@@ -41,10 +44,13 @@ public:
|
||||
bool fileExists(const std::string& fileName);
|
||||
bool directoryExists(const std::string& directoryName);
|
||||
|
||||
// @dontbind
|
||||
void loadFile(const std::string& fileName, std::iostream& out);
|
||||
std::string loadFile(const std::string& fileName);
|
||||
// @dontbind
|
||||
bool saveFile(const std::string& fileName, const uchar* data, uint size);
|
||||
bool saveFile(const std::string& fileName, const std::string& data);
|
||||
// @dontbind
|
||||
bool saveFile(const std::string& fileName, std::iostream& in);
|
||||
|
||||
FileStreamPtr openFile(const std::string& fileName);
|
||||
|
||||
Reference in New Issue
Block a user