示例#1
0
文件: Verify.cs 项目: kof1016/Regulus
 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;
 }
示例#2
0
文件: User.cs 项目: jiowchern/Regulus
 internal void OnLoginSuccess(Serializable.AccountInfomation obj)
 {
     VerifySuccessEvent(obj.Id);
     _AccountInfomation = obj;
     _Storage.CreateConsumptionPlayer(_AccountInfomation.Id);
     ToParking();
 }
示例#3
0
文件: User.cs 项目: jiowchern/Regulus
 void Regulus.Framework.ILaunched.Launch()
 {
     _AccountInfomation = null;
     _ClearActor();
     _Machine.Push(new VerifyStage(_Storage,this));
 }
示例#4
0
文件: User.cs 项目: jiowchern/Regulus
 internal void ToLogout()
 {
     _AccountInfomation = null;
     _ClearActor();
     _Machine.Push(new VerifyStage(_Storage ,this));
 }
示例#5
0
文件: User.cs 项目: kof1016/Regulus
 internal void OnLoginSuccess(Serializable.AccountInfomation obj)
 {
     _AccountInfomation = obj;
     ToParking();
 }
示例#6
0
文件: User.cs 项目: kof1016/Regulus
 internal void Logout()
 {
     _AccountInfomation = null;
     _ClearActor();
     _Machine.Push(new VerifyStage(_UserRoster , _Storage));
 }