Exemple #1
0
        public LoginResultData GetLoginResultInfo(UserLoginInfo UserLoginInfo)
        {
            List <CreateRoleTable> allCreateRoles = CreateRoleTableInstance.GetActorList();
            List <ActorTable>      allActors      = ActorTableInstance.GetActorList();

            int playerSelectRole = Random.Range(0, CreateRoleTableInstance.Count);

            ActorTable        actorTable   = ActorTableInstance.GetData(allCreateRoles[playerSelectRole].ActorTable_DataID);
            ActorJobTypeTable actorJobType = ActorJobTypeTableInstance.GetData(actorTable.ActorJobTypeTable_DataID);

            LoginData loginData = new LoginData()
            {
                UserName = UserLoginInfo.UserName, Password = UserLoginInfo.Password, ActorTable_DataID = actorTable.DataID
            };
            LoginTest   loginTest   = new LoginTest();
            PlayerTable reslutTable = loginTest.OnLogin(loginData);

            CurrentPlayer.SetInstance(reslutTable);
            LoginResultData loginResultData = new LoginResultData();

            loginResultData.Success = true;
            return(loginResultData);
        }
Exemple #2
0
 public static bool UpdateData(ActorJobTypeTable newValue)
 {
     return(SingleInstance.UpdateData(newValue));
 }