mta-mono/MultiTheftAuto/Blip.cs

130 lines
2.3 KiB
C#
Raw Normal View History

2015-12-23 20:25:52 +00:00
using System;
using System.Runtime.CompilerServices;
2015-12-23 20:25:52 +00:00
namespace MultiTheftAuto
{
public enum BlipIcon
{
None = 0,
Border,
Centre,
MapHere,
North,
AirYard,
Gun,
Barbers,
BigSmoke,
BoatYard,
Burgershot,
Bulldozer,
CatPink,
Cesar,
Chicken,
CJ,
Crash1,
Diner,
EmmetGun,
EnemyAttack,
Fire,
Girlfriend,
Hospital,
Coco,
Maddog,
Mafia,
Mcstrap,
ModGarage,
Ogloc,
Pizza,
Police,
PropertyGreen,
PropertyRed,
Race,
Ryder,
SaveHouse,
School,
Mystery,
Sweet,
Tattoo,
Truth,
Waypoint,
TorenoRanch,
Triads,
TriadsCasino,
Tshirt,
Woozie,
Zero,
DateDisco,
DateDrink,
DateFood,
Truck,
Cash,
Flag,
Gym,
Impound,
RunwayLight,
Runway,
GangB,
GangP,
GangY,
GangN,
GangG,
Spray
}
public class Blip : Element
{
#region Constructors
[MethodImpl( MethodImplOptions.InternalCall )]
public extern Blip( Vector3 position, BlipIcon icon = BlipIcon.None, int size = 2, Color color = null, int ordering = 0, float visibleDistance = 99999.0f, Element visibleTo = null );
2015-12-23 20:25:52 +00:00
[MethodImpl( MethodImplOptions.InternalCall )]
public extern Blip( Element element, BlipIcon icon = BlipIcon.None, int size = 2, Color color = null, int ordering = 0, float visibleDistance = 99999.0f, Element visibleTo = null );
2015-12-23 20:25:52 +00:00
internal Blip()
2015-12-23 20:25:52 +00:00
{
}
#endregion
#region Get functions
[MethodImpl( MethodImplOptions.InternalCall )]
public extern int GetIcon();
2015-12-23 20:25:52 +00:00
[MethodImpl( MethodImplOptions.InternalCall )]
public extern int GetSize();
2015-12-23 20:25:52 +00:00
[MethodImpl( MethodImplOptions.InternalCall )]
public extern Color GetColor();
2015-12-23 20:25:52 +00:00
[MethodImpl( MethodImplOptions.InternalCall )]
public extern int GetOrdering();
2015-12-23 20:25:52 +00:00
[MethodImpl( MethodImplOptions.InternalCall )]
public extern float GetVisibleDistance();
2015-12-23 20:25:52 +00:00
#endregion
#region Set functions
[MethodImpl( MethodImplOptions.InternalCall )]
public extern bool SetIcon( int icon );
2015-12-23 20:25:52 +00:00
[MethodImpl( MethodImplOptions.InternalCall )]
public extern bool SetSize( int size );
2015-12-23 20:25:52 +00:00
[MethodImpl( MethodImplOptions.InternalCall )]
public extern bool SetColor( Color color );
2015-12-23 20:25:52 +00:00
[MethodImpl( MethodImplOptions.InternalCall )]
public extern bool SetOrdering( int ordering );
2015-12-23 20:25:52 +00:00
[MethodImpl( MethodImplOptions.InternalCall )]
public extern bool SetVisibleDistance( float distance );
2015-12-23 20:25:52 +00:00
#endregion
}
}