예제 #1
0
파일: Verify.cs 프로젝트: jiowchern/Regulus
 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;
 }
예제 #2
0
파일: User.cs 프로젝트: kof1016/Regulus
 void Regulus.Framework.ILaunched.Launch()
 {
     _AccountInfomation = null;
     _ClearActor();
     _Machine.Push(new VerifyStage(_UserRoster));
 }
예제 #3
0
파일: User.cs 프로젝트: kof1016/Regulus
 internal void OnLoginSuccess(Serializable.AccountInfomation obj)
 {
     _AccountInfomation = obj;
     ToParking();
 }
예제 #4
0
파일: User.cs 프로젝트: kof1016/Regulus
 internal void Logout()
 {
     _AccountInfomation = null;
     _ClearActor();
     _Machine.Push(new VerifyStage(_UserRoster));
 }