mirror of
https://github.com/ChronosX88/mta-mono.git
synced 2024-11-24 19:22:21 +00:00
41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
|
using System;
|
|||
|
using System.Runtime.CompilerServices;
|
|||
|
|
|||
|
namespace MultiTheftAuto.Native
|
|||
|
{
|
|||
|
public class Team
|
|||
|
{
|
|||
|
// Team get funcs
|
|||
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|||
|
public static extern UInt32 Create( string name, Color color = null );
|
|||
|
|
|||
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|||
|
public static extern UInt32 GetFromName( string name );
|
|||
|
|
|||
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|||
|
public static extern string GetName( UInt32 team );
|
|||
|
|
|||
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|||
|
public static extern Color GetColor( UInt32 team );
|
|||
|
|
|||
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|||
|
public static extern bool GetFriendlyFire( UInt32 team );
|
|||
|
|
|||
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|||
|
public static extern UInt32[] GetPlayers( UInt32 team );
|
|||
|
|
|||
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|||
|
public static extern int CountPlayers( UInt32 team );
|
|||
|
|
|||
|
// Team set funcs
|
|||
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|||
|
public static extern bool SetName( UInt32 team, string name );
|
|||
|
|
|||
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|||
|
public static extern bool SetColor( UInt32 team, Color color );
|
|||
|
|
|||
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|||
|
public static extern bool SetFriendlyFire( UInt32 team, bool enabled );
|
|||
|
}
|
|||
|
}
|