mirror of
https://github.com/ChronosX88/mta-mono.git
synced 2024-11-22 02:02:23 +00:00
34f4eebb14
Removed Native static classes.
51 lines
1.2 KiB
C#
51 lines
1.2 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace MultiTheftAuto
|
|
{
|
|
public enum PickupType
|
|
{
|
|
Health,
|
|
Armour,
|
|
Weapon,
|
|
Custom,
|
|
}
|
|
|
|
public class Pickup : Element
|
|
{
|
|
internal Pickup()
|
|
{
|
|
}
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
extern public Pickup( Vector3 position, PickupType type, double value, ulong ulRespawnInterval, int ammo );
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
extern public PickupType GetPickupType();
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
extern public int GetWeapon();
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
extern public float GetAmount();
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
extern public ushort GetAmmo();
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
extern public ulong GetRespawnInterval();
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
extern public bool IsSpawned();
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
extern public bool SetType( PickupType type, double value, double ammo );
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
extern public bool SetRespawnInterval( ulong interval );
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
extern public bool Use( Element player );
|
|
}
|
|
}
|