mirror of
https://github.com/ChronosX88/mta-mono.git
synced 2024-11-22 10:12:20 +00:00
Зачем тут указатель?
This commit is contained in:
parent
5a38df8feb
commit
7bc8f524b7
@ -4458,14 +4458,14 @@ bool CLuaFunctionDefinitions::SetMarkerColor( lua_State* pLuaVM, void* pUserData
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CLuaFunctionDefinitions::SetMarkerTarget( lua_State* pLuaVM, void* pUserData, const Vector3* pTarget )
|
||||
bool CLuaFunctionDefinitions::SetMarkerTarget( lua_State* pLuaVM, void* pUserData, const Vector3& pTarget )
|
||||
{
|
||||
CLuaArguments pLuaArguments;
|
||||
|
||||
pLuaArguments.PushUserData( pUserData );
|
||||
pLuaArguments.PushNumber( pTarget->fX );
|
||||
pLuaArguments.PushNumber( pTarget->fY );
|
||||
pLuaArguments.PushNumber( pTarget->fZ );
|
||||
pLuaArguments.PushNumber( pTarget.fX );
|
||||
pLuaArguments.PushNumber( pTarget.fY );
|
||||
pLuaArguments.PushNumber( pTarget.fZ );
|
||||
|
||||
if( pLuaArguments.Call( pLuaVM, "setMarkerTarget", 1 ) )
|
||||
{
|
||||
@ -8451,7 +8451,7 @@ bool CLuaFunctionDefinitions::GetCameraInterior( lua_State* pLuaVM, void* pPlaye
|
||||
|
||||
// Camera set functions
|
||||
|
||||
bool CLuaFunctionDefinitions::SetCameraMatrix( lua_State* pLuaVM, void* pElement, const Vector3& vecPosition, Vector3* pvecLookAt, float fRoll, float fFOV )
|
||||
bool CLuaFunctionDefinitions::SetCameraMatrix( lua_State* pLuaVM, void* pElement, const Vector3& vecPosition, Vector3& pvecLookAt, float fRoll, float fFOV )
|
||||
{
|
||||
CLuaArguments pLuaArguments;
|
||||
|
||||
@ -8461,16 +8461,16 @@ bool CLuaFunctionDefinitions::SetCameraMatrix( lua_State* pLuaVM, void* pElement
|
||||
pLuaArguments.PushNumber( vecPosition.fY );
|
||||
pLuaArguments.PushNumber( vecPosition.fZ );
|
||||
|
||||
pLuaArguments.PushNumber( pvecLookAt->fX );
|
||||
pLuaArguments.PushNumber( pvecLookAt->fY );
|
||||
pLuaArguments.PushNumber( pvecLookAt->fZ );
|
||||
pLuaArguments.PushNumber( pvecLookAt.fX );
|
||||
pLuaArguments.PushNumber( pvecLookAt.fY );
|
||||
pLuaArguments.PushNumber( pvecLookAt.fZ );
|
||||
|
||||
pLuaArguments.PushNumber( fRoll );
|
||||
pLuaArguments.PushNumber( fFOV );
|
||||
|
||||
if( pLuaArguments.Call( pLuaVM, "setCameraMatrix", 1 ) )
|
||||
{
|
||||
return ( new CLuaArgument( pLuaVM, -1 ) )->GetBoolean();
|
||||
return CLuaArgument( pLuaVM, -1 ).GetBoolean();
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -331,7 +331,7 @@ public:
|
||||
static bool SetMarkerType ( lua_State* pLuaVM, void* pUserData, const char* szType );
|
||||
static bool SetMarkerSize ( lua_State* pLuaVM, void* pUserData, float fSize );
|
||||
static bool SetMarkerColor ( lua_State* pLuaVM, void* pUserData, const SColor color );
|
||||
static bool SetMarkerTarget ( lua_State* pLuaVM, void* pUserData, const Vector3* pTarget );
|
||||
static bool SetMarkerTarget ( lua_State* pLuaVM, void* pUserData, const Vector3& pTarget );
|
||||
static bool SetMarkerIcon ( lua_State* pLuaVM, void* pUserData, const char* szIcon );
|
||||
|
||||
// Blip create/destroy functions
|
||||
@ -645,7 +645,7 @@ public:
|
||||
static bool GetCameraInterior ( lua_State* pLuaVM, void* pPlayer, unsigned char & ucInterior );
|
||||
|
||||
// Camera set functions
|
||||
static bool SetCameraMatrix ( lua_State* pLuaVM, void* pPlayer, const Vector3& vecPosition, Vector3* pvecLookAt, float fRoll, float fFOV );
|
||||
static bool SetCameraMatrix ( lua_State* pLuaVM, void* pPlayer, const Vector3& vecPosition, Vector3& pvecLookAt, float fRoll, float fFOV );
|
||||
static bool SetCameraTarget ( lua_State* pLuaVM, void* pPlayer, void* pTarget );
|
||||
static bool SetCameraInterior ( lua_State* pLuaVM, void* pPlayer, unsigned char ucInterior );
|
||||
static bool FadeCamera ( lua_State* pLuaVM, void* pPlayer, bool bFadeIn, float fFadeTime, unsigned char ucRed, unsigned char ucGreen, unsigned char ucBlue );
|
||||
|
Loading…
Reference in New Issue
Block a user