doc and luabinder changes

This commit is contained in:
Eduardo Bart
2012-06-22 00:14:13 -03:00
parent c5674d10ba
commit aed779a2c8
60 changed files with 348 additions and 126 deletions

View File

@@ -25,6 +25,7 @@
#include "declarations.h"
// @bindsingleton g_clock
class Clock
{
public:

View File

@@ -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();

View File

@@ -26,6 +26,7 @@
#include "clock.h"
#include "scheduledevent.h"
// @bindsingleton g_eventDispatcher
class EventDispatcher
{
public:

View File

@@ -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();

View File

@@ -32,6 +32,7 @@ struct LogMessage {
std::size_t when;
};
// @bindsingleton g_logger
class Logger
{
enum {

View File

@@ -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:

View File

@@ -25,6 +25,7 @@
#include "module.h"
// @bindsingleton g_modules
class ModuleManager
{
public:

View File

@@ -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);