mta-mono/MultiTheftAuto/Team.cs

58 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
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MultiTheftAuto
{
public class Team : Element
{
#region Construcotrs
[MethodImpl( MethodImplOptions.InternalCall )]
public extern Team( string name, Color color = null );
2015-12-12 10:10:23 +00:00
private Team()
2015-12-12 10:10:23 +00:00
{
}
#endregion
#region Methods
[MethodImpl( MethodImplOptions.InternalCall )]
public extern string GetName();
2015-12-12 10:10:23 +00:00
[MethodImpl( MethodImplOptions.InternalCall )]
public extern Color GetColor();
2015-12-12 10:10:23 +00:00
[MethodImpl( MethodImplOptions.InternalCall )]
public extern bool GetFriendlyFire();
2015-12-12 10:10:23 +00:00
[MethodImpl( MethodImplOptions.InternalCall )]
public extern Player[] GetPlayers();
2015-12-12 10:10:23 +00:00
[MethodImpl( MethodImplOptions.InternalCall )]
public extern int CountPlayers();
2015-12-12 10:10:23 +00:00
[MethodImpl( MethodImplOptions.InternalCall )]
public extern bool SetName( string name );
2015-12-12 10:10:23 +00:00
[MethodImpl( MethodImplOptions.InternalCall )]
public extern bool SetColor( Color color );
2015-12-12 10:10:23 +00:00
[MethodImpl( MethodImplOptions.InternalCall )]
public extern bool SetFriendlyFire( bool enabled );
2015-12-12 10:10:23 +00:00
#endregion
#region Static methods
[MethodImpl( MethodImplOptions.InternalCall )]
public extern static Team GetFromName( string name );
2015-12-12 10:10:23 +00:00
#endregion
}
}