Example #1
0
 Regulus.Remoting.Value<bool> IVerify.CreateAccount(string name, string password)
 {
     if (_Stroage.FindAccountInfomation(name) == null)
     {
         AccountInfomation ai = new AccountInfomation();
         ai.Name = name;
         ai.Password = password;
         ai.Id = Guid.NewGuid();
         _Stroage.Add(ai);
         return true;
     }
     return false;
 }
Example #2
0
 internal void OnLoginSuccess(Serializable.AccountInfomation obj)
 {
     VerifySuccessEvent(obj.Id);
     _AccountInfomation = obj;
     _Storage.CreateConsumptionPlayer(_AccountInfomation.Id);
     ToParking();
 }
Example #3
0
 void Regulus.Framework.ILaunched.Launch()
 {
     _AccountInfomation = null;
     _ClearActor();
     _Machine.Push(new VerifyStage(_Storage,this));
 }
Example #4
0
 internal void ToLogout()
 {
     _AccountInfomation = null;
     _ClearActor();
     _Machine.Push(new VerifyStage(_Storage ,this));
 }
Example #5
0
 internal void OnLoginSuccess(Serializable.AccountInfomation obj)
 {
     _AccountInfomation = obj;
     ToParking();
 }
Example #6
0
 internal void Logout()
 {
     _AccountInfomation = null;
     _ClearActor();
     _Machine.Push(new VerifyStage(_UserRoster , _Storage));
 }