mirror of
https://github.com/ChronosX88/mta-mono.git
synced 2024-11-24 11:12:20 +00:00
Version updated
This commit is contained in:
parent
1192a4d21c
commit
9809a54479
@ -1,63 +1,63 @@
|
|||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
*
|
*
|
||||||
* PROJECT: Multi Theft Auto v1.0
|
* PROJECT: Multi Theft Auto v1.0
|
||||||
* LICENSE: See LICENSE in the top level directory
|
* LICENSE: See LICENSE in the top level directory
|
||||||
* FILE: publicsdk/include/ILuaModuleManager.h
|
* FILE: publicsdk/include/ILuaModuleManager.h
|
||||||
* PURPOSE: Lua dynamic module interface
|
* PURPOSE: Lua dynamic module interface
|
||||||
*
|
*
|
||||||
* Multi Theft Auto is available from http://www.multitheftauto.com/
|
* Multi Theft Auto is available from http://www.multitheftauto.com/
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
// INTERFACE for Lua dynamic modules
|
// INTERFACE for Lua dynamic modules
|
||||||
|
|
||||||
#ifndef __ILUAMODULEMANAGER_H
|
#ifndef __ILUAMODULEMANAGER_H
|
||||||
#define __ILUAMODULEMANAGER_H
|
#define __ILUAMODULEMANAGER_H
|
||||||
|
|
||||||
#define MAX_INFO_LENGTH 128
|
#define MAX_INFO_LENGTH 128
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#include <lua.h>
|
#include <lua.h>
|
||||||
#include <lualib.h>
|
#include <lualib.h>
|
||||||
#include <lauxlib.h>
|
#include <lauxlib.h>
|
||||||
}
|
}
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#ifndef __CChecksum_H
|
#ifndef __CChecksum_H
|
||||||
class CChecksum
|
class CChecksum
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
unsigned long ulCRC;
|
unsigned long ulCRC;
|
||||||
unsigned char mD5 [16];
|
unsigned char mD5 [16];
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Interface for modules until DP2.3 */
|
/* Interface for modules until DP2.3 */
|
||||||
class ILuaModuleManager
|
class ILuaModuleManager
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual void ErrorPrintf ( const char* szFormat, ... ) = 0;
|
virtual void ErrorPrintf ( const char* szFormat, ... ) = 0;
|
||||||
virtual void DebugPrintf ( lua_State * luaVM, const char* szFormat, ... ) = 0;
|
virtual void DebugPrintf ( lua_State * luaVM, const char* szFormat, ... ) = 0;
|
||||||
virtual void Printf ( 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 RegisterFunction ( lua_State * luaVM, const char *szFunctionName, lua_CFunction Func ) = 0;
|
||||||
virtual bool GetResourceName ( lua_State * luaVM, std::string &strName ) = 0;
|
virtual bool GetResourceName ( lua_State * luaVM, std::string &strName ) = 0;
|
||||||
virtual CChecksum GetResourceMetaChecksum ( lua_State * luaVM ) = 0;
|
virtual CChecksum GetResourceMetaChecksum ( lua_State * luaVM ) = 0;
|
||||||
virtual CChecksum GetResourceFileChecksum ( lua_State * luaVM, const char* szFile ) = 0;
|
virtual CChecksum GetResourceFileChecksum ( lua_State * luaVM, const char* szFile ) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Interface for modules until 1.0 */
|
/* Interface for modules until 1.0 */
|
||||||
class ILuaModuleManager10 : public ILuaModuleManager
|
class ILuaModuleManager10 : public ILuaModuleManager
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual unsigned long GetVersion ( ) = 0;
|
virtual unsigned long GetVersion ( ) = 0;
|
||||||
virtual const char* GetVersionString ( ) = 0;
|
virtual const char* GetVersionString ( ) = 0;
|
||||||
virtual const char* GetVersionName ( ) = 0;
|
virtual const char* GetVersionName ( ) = 0;
|
||||||
virtual unsigned long GetNetcodeVersion ( ) = 0;
|
virtual unsigned long GetNetcodeVersion ( ) = 0;
|
||||||
virtual const char* GetOperatingSystemName ( ) = 0;
|
virtual const char* GetOperatingSystemName ( ) = 0;
|
||||||
|
|
||||||
virtual lua_State* GetResourceFromName ( const char* szResourceName ) = 0;
|
virtual lua_State* GetResourceFromName ( const char* szResourceName ) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
#define MODULE_NAME "Mono 4.2.1"
|
#define MODULE_NAME "Mono 4.2.1"
|
||||||
#define MODULE_AUTHOR "Dmitry Korolev <kernell@mtaroleplay.ru>"
|
#define MODULE_AUTHOR "Dmitry Korolev <kernell@mtaroleplay.ru>"
|
||||||
#define MODULE_VERSION 0.25f
|
#define MODULE_VERSION 0.26f
|
||||||
|
|
||||||
#include "CFunctions.h"
|
#include "CFunctions.h"
|
||||||
#include "CResource.h"
|
#include "CResource.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user