mta-mono/MultiTheftAuto/Native/Object.cs
2015-12-12 13:10:23 +03:00

27 lines
925 B
C#

using System;
using System.Runtime.CompilerServices;
namespace MultiTheftAuto.Native
{
public class Object
{
// Object create/destroy functions
[MethodImpl( MethodImplOptions.InternalCall )]
public static extern UInt32 Create( int modelid, Vector3 position, Vector3 rotation, bool isLowLOD = false );
// Object get functions
[MethodImpl( MethodImplOptions.InternalCall )]
public static extern float GetScale( UInt32 Object );
// Object set functions
[MethodImpl( MethodImplOptions.InternalCall )]
public static extern bool SetScale( UInt32 Object, float scale );
[MethodImpl( MethodImplOptions.InternalCall )]
public static extern bool Move( UInt32 Object, int time, Vector3 target, Vector3 rotation, string easingType, float easingPeriod, float easingAmplitude, float easingOvershoot );
[MethodImpl( MethodImplOptions.InternalCall )]
public static extern bool Stop( UInt32 Object );
}
}