mta-mono/MultiTheftAuto/Native/Server.cs

31 lines
931 B
C#
Raw Normal View History

2015-12-12 10:10:23 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace MultiTheftAuto.Native
{
internal class Server
{
[MethodImpl( MethodImplOptions.InternalCall )]
public static extern uint GetMaxPlayers();
[MethodImpl( MethodImplOptions.InternalCall )]
public static extern bool SetMaxPlayers( uint maxPlayers );
[MethodImpl( MethodImplOptions.InternalCall )]
public static extern bool OutputChatBox( string text, UInt32 element, Color color, bool colorCoded );
[MethodImpl( MethodImplOptions.InternalCall )]
public static extern bool OutputConsole( string text, UInt32 element );
[MethodImpl( MethodImplOptions.InternalCall )]
public static extern bool SetPassword( string password, bool bSave );
[MethodImpl( MethodImplOptions.InternalCall )]
public static extern ServerVersion GetVersion();
}
}