Exemple #1
0
 public AdventureStage(IMap map , IStorage storage , User user)
 {
     _User = user;
     _Observeds = new List<IObservedAbility>();
     _Stroage = storage;
     _Map = map;
 }
Exemple #2
0
 internal void PushUser(User user)
 {
     user.QuitEvent += () =>
     {
         _FrameworkRoot.Remove(user);
         _User.Remove(user);
     };
     _FrameworkRoot.Add(user);
     _User.Add(user);
 }
Exemple #3
0
        internal void PushUser(User user)
        {
            user.VerifySuccessEvent += (id) =>
            {
                if (NewUserEvent != null)
                    NewUserEvent(id);
                NewUserEvent += user.OnKick;
            };

            user.QuitEvent += () =>
            {
                NewUserEvent -= user.OnKick;
                _Users.Remove(user);
            };
            _Users.Add(user);
        }
Exemple #4
0
 public ParkingStage(IStorage storage , User user)
 {
     _User = user;
     _Storage = storage;
 }
Exemple #5
0
 public VerifyStage(IStorage storage,User user)
 {
     _User = user;
     _Storage = storage;
 }