public bool CreatePlayer(int id, string name, string password, bool isFirst) { try { Player player = new Player(); player.Id = id; player.Name = name; player.Password = password; player.IsFirst = isFirst; LoginMgr.CreatePlayer(player); return(true); } catch { } return(false); }
public bool CreatePlayer(int id, string name, string password, bool isFirst) { try { LoginMgr.CreatePlayer(new Player { Id = id, Name = name, Password = password, IsFirst = isFirst }); return(true); } catch { } return(false); }
public static bool CreatePlayer(int id, string name, string password, bool isFirst) { bool result; try { LoginMgr.CreatePlayer(new Player { Id = id, Name = name, Password = password, IsFirst = isFirst }); result = true; return(result); } catch (Exception e) { CenterServer.log.Error(e); } result = false; return(result); }