mta-mono/MultiTheftAuto/Pickup.cs

51 lines
1.2 KiB
C#
Raw Normal View History

2015-12-12 10:10:23 +00:00
using System;
using System.Runtime.CompilerServices;
2015-12-12 10:10:23 +00:00
namespace MultiTheftAuto
{
public enum PickupType
{
Health,
Armour,
Weapon,
Custom,
}
2015-12-12 10:10:23 +00:00
public class Pickup : Element
{
internal Pickup()
2015-12-12 10:10:23 +00:00
{
}
[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 );
2015-12-12 10:10:23 +00:00
}
}