Version updated

This commit is contained in:
Kernell 2015-12-23 23:32:39 +03:00
parent 1192a4d21c
commit 9809a54479
2 changed files with 64 additions and 64 deletions

View File

@ -1,63 +1,63 @@
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: publicsdk/include/ILuaModuleManager.h
* PURPOSE: Lua dynamic module interface
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
*****************************************************************************/
// INTERFACE for Lua dynamic modules
#ifndef __ILUAMODULEMANAGER_H
#define __ILUAMODULEMANAGER_H
#define MAX_INFO_LENGTH 128
extern "C"
{
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}
#include <string>
#ifndef __CChecksum_H
class CChecksum
{
public:
unsigned long ulCRC;
unsigned char mD5 [16];
};
#endif
/* Interface for modules until DP2.3 */
class ILuaModuleManager
{
public:
virtual void ErrorPrintf ( const char* szFormat, ... ) = 0;
virtual void DebugPrintf ( lua_State * luaVM, const char* szFormat, ... ) = 0;
virtual void Printf ( const char* szFormat, ... ) = 0;
virtual bool RegisterFunction ( lua_State * luaVM, const char *szFunctionName, lua_CFunction Func ) = 0;
virtual bool GetResourceName ( lua_State * luaVM, std::string &strName ) = 0;
virtual CChecksum GetResourceMetaChecksum ( lua_State * luaVM ) = 0;
virtual CChecksum GetResourceFileChecksum ( lua_State * luaVM, const char* szFile ) = 0;
};
/* Interface for modules until 1.0 */
class ILuaModuleManager10 : public ILuaModuleManager
{
public:
virtual unsigned long GetVersion ( ) = 0;
virtual const char* GetVersionString ( ) = 0;
virtual const char* GetVersionName ( ) = 0;
virtual unsigned long GetNetcodeVersion ( ) = 0;
virtual const char* GetOperatingSystemName ( ) = 0;
virtual lua_State* GetResourceFromName ( const char* szResourceName ) = 0;
};
#endif
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: publicsdk/include/ILuaModuleManager.h
* PURPOSE: Lua dynamic module interface
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
*****************************************************************************/
// INTERFACE for Lua dynamic modules
#ifndef __ILUAMODULEMANAGER_H
#define __ILUAMODULEMANAGER_H
#define MAX_INFO_LENGTH 128
extern "C"
{
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}
#include <string>
#ifndef __CChecksum_H
class CChecksum
{
public:
unsigned long ulCRC;
unsigned char mD5 [16];
};
#endif
/* Interface for modules until DP2.3 */
class ILuaModuleManager
{
public:
virtual void ErrorPrintf ( const char* szFormat, ... ) = 0;
virtual void DebugPrintf ( lua_State * luaVM, const char* szFormat, ... ) = 0;
virtual void Printf ( const char* szFormat, ... ) = 0;
virtual bool RegisterFunction ( lua_State * luaVM, const char *szFunctionName, lua_CFunction Func ) = 0;
virtual bool GetResourceName ( lua_State * luaVM, std::string &strName ) = 0;
virtual CChecksum GetResourceMetaChecksum ( lua_State * luaVM ) = 0;
virtual CChecksum GetResourceFileChecksum ( lua_State * luaVM, const char* szFile ) = 0;
};
/* Interface for modules until 1.0 */
class ILuaModuleManager10 : public ILuaModuleManager
{
public:
virtual unsigned long GetVersion ( ) = 0;
virtual const char* GetVersionString ( ) = 0;
virtual const char* GetVersionName ( ) = 0;
virtual unsigned long GetNetcodeVersion ( ) = 0;
virtual const char* GetOperatingSystemName ( ) = 0;
virtual lua_State* GetResourceFromName ( const char* szResourceName ) = 0;
};
#endif

View File

@ -14,7 +14,7 @@
#define MODULE_NAME "Mono 4.2.1"
#define MODULE_AUTHOR "Dmitry Korolev <kernell@mtaroleplay.ru>"
#define MODULE_VERSION 0.25f
#define MODULE_VERSION 0.26f
#include "CFunctions.h"
#include "CResource.h"