Пример #1
0
 internal static Account Get(MtaAccount account)
 {
     if (account == null)
     {
         return(null);
     }
     if (!accounts.ContainsKey(account))
     {
         return(new Account(account));
     }
     return(accounts[account]);
 }
Пример #2
0
 internal static Account Get(MtaAccount account)
 {
     if (account == null)
     {
         return(null);
     }
     if (accounts == null)
     {
         accounts = new Dictionary <object, Account>();
     }
     if (!accounts.ContainsKey(account))
     {
         return(new Account(account));
     }
     return(accounts[account]);
 }
Пример #3
0
 internal OnLogoutEventArgs(MtaAccount previousAccount, MtaAccount newAccount)
 {
     PreviousAccount = Account.Get(previousAccount);
     NewAccount      = Account.Get(newAccount);
 }
Пример #4
0
 internal OnDataChangeEventArgs(MtaAccount account, dynamic key, dynamic value)
 {
     Account = Account.Get(account);
     Key     = (string)key;
     Value   = (string)value;
 }
Пример #5
0
 public static string GetAccountIP(MtaAccount theAccount)
 {
     throw new NotImplementedException();
 }
Пример #6
0
 public static bool SetAccountName(MtaAccount theAccount, string name, bool allowCaseVariations)
 {
     throw new NotImplementedException();
 }
Пример #7
0
 public static bool SetAccountPassword(MtaAccount theAccount, string password)
 {
     throw new NotImplementedException();
 }
Пример #8
0
 public static string GetAccountData(MtaAccount theAccount, string key)
 {
     throw new NotImplementedException();
 }
Пример #9
0
 public static bool LogIn(MtaElement thePlayer, MtaAccount theAccount, string thePassword)
 {
     throw new NotImplementedException();
 }
Пример #10
0
 public static bool SetAccountData(MtaAccount theAccount, string key, dynamic value)
 {
     throw new NotImplementedException();
 }
Пример #11
0
 public static bool RemoveAccount(MtaAccount theAccount)
 {
     throw new NotImplementedException();
 }
Пример #12
0
 public static MtaElement GetAccountPlayer(MtaAccount theAccount)
 {
     throw new NotImplementedException();
 }
Пример #13
0
 public static bool CopyAccountData(MtaAccount theAccount, MtaAccount fromAccount)
 {
     throw new NotImplementedException();
 }
Пример #14
0
 public static dynamic GetAllAccountData(MtaAccount theAccount)
 {
     throw new NotImplementedException();
 }
Пример #15
0
 public static int GetAccountID(MtaAccount theAccount)
 {
     throw new NotImplementedException();
 }
Пример #16
0
 internal Account(MtaAccount account)
 {
     MTAAccount = account;
     accounts.Add(MTAAccount, this);
 }