mta-mono/MultiTheftAuto/Account.cs

52 lines
1.4 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
namespace MultiTheftAuto
{
public class Account : Element
{
internal Account()
2015-12-12 10:10:23 +00:00
{
}
[MethodImpl( MethodImplOptions.InternalCall )]
static extern public Account Add( string name, string password );
[MethodImpl( MethodImplOptions.InternalCall )]
static extern public Account Get( string name, string password );
[MethodImpl( MethodImplOptions.InternalCall )]
static extern public Account[] GetBySerial( string serial );
[MethodImpl( MethodImplOptions.InternalCall )]
static extern public Account[] GetAll();
[MethodImpl( MethodImplOptions.InternalCall )]
extern public Player GetPlayer();
[MethodImpl( MethodImplOptions.InternalCall )]
extern public bool IsGuest();
[MethodImpl( MethodImplOptions.InternalCall )]
extern public object GetData( string key );
[MethodImpl( MethodImplOptions.InternalCall )]
extern public object[] GetAllData();
[MethodImpl( MethodImplOptions.InternalCall )]
extern public string GetSerial();
[MethodImpl( MethodImplOptions.InternalCall )]
extern public bool Remove();
[MethodImpl( MethodImplOptions.InternalCall )]
extern public bool SetPassword( string password );
[MethodImpl( MethodImplOptions.InternalCall )]
extern public bool SetData( string key, object argument );
[MethodImpl( MethodImplOptions.InternalCall )]
extern public bool CopyData( Account fromAccount );
2015-12-12 10:10:23 +00:00
}
}