Ejemplo n.º 1
0
 Regulus.Remoting.Value<bool> IVerify.CreateAccount(string name, string password)
 {
     if (Regulus.Utility.Singleton<Storage>.Instance.FindAccountInfomation(name) == null)
     {
         AccountInfomation ai = new AccountInfomation();
         ai.Name = name;
         ai.Password = password;
         ai.Id = Guid.NewGuid();
         Regulus.Utility.Singleton<Storage>.Instance.Add(ai);
         return true;
     }
     return false;
 }
Ejemplo n.º 2
0
 void Regulus.Framework.ILaunched.Launch()
 {
     _AccountInfomation = null;
     _ClearActor();
     _Machine.Push(new VerifyStage(_UserRoster));
 }
Ejemplo n.º 3
0
 internal void OnLoginSuccess(Serializable.AccountInfomation obj)
 {
     _AccountInfomation = obj;
     ToParking();
 }
Ejemplo n.º 4
0
 internal void Logout()
 {
     _AccountInfomation = null;
     _ClearActor();
     _Machine.Push(new VerifyStage(_UserRoster));
 }