2015-12-12 10:10:23 +00:00
|
|
|
|
using System;
|
2016-01-06 18:06:22 +00:00
|
|
|
|
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
|
|
|
|
|
|
2016-01-06 18:06:22 +00:00
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
|
|
|
public extern Team( string name, Color color = null );
|
2015-12-12 10:10:23 +00:00
|
|
|
|
|
2016-01-06 18:06:22 +00:00
|
|
|
|
private Team()
|
2015-12-12 10:10:23 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Methods
|
|
|
|
|
|
2016-01-06 18:06:22 +00:00
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
|
|
|
public extern string GetName();
|
2015-12-12 10:10:23 +00:00
|
|
|
|
|
2016-01-06 18:06:22 +00:00
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
|
|
|
public extern Color GetColor();
|
2015-12-12 10:10:23 +00:00
|
|
|
|
|
2016-01-06 18:06:22 +00:00
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
|
|
|
public extern bool GetFriendlyFire();
|
2015-12-12 10:10:23 +00:00
|
|
|
|
|
2016-01-06 18:06:22 +00:00
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
|
|
|
public extern Player[] GetPlayers();
|
2015-12-12 10:10:23 +00:00
|
|
|
|
|
2016-01-06 18:06:22 +00:00
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
|
|
|
public extern int CountPlayers();
|
2015-12-12 10:10:23 +00:00
|
|
|
|
|
2016-01-06 18:06:22 +00:00
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
|
|
|
public extern bool SetName( string name );
|
2015-12-12 10:10:23 +00:00
|
|
|
|
|
2016-01-06 18:06:22 +00:00
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
|
|
|
public extern bool SetColor( Color color );
|
2015-12-12 10:10:23 +00:00
|
|
|
|
|
2016-01-06 18:06:22 +00:00
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
|
|
|
public extern bool SetFriendlyFire( bool enabled );
|
2015-12-12 10:10:23 +00:00
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Static methods
|
|
|
|
|
|
2016-01-06 18:06:22 +00:00
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
|
|
|
public extern static Team GetFromName( string name );
|
2015-12-12 10:10:23 +00:00
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|