public AdventureStage(IMap map , IStorage storage , User user) { _User = user; _Observeds = new List<IObservedAbility>(); _Stroage = storage; _Map = map; }
internal void PushUser(User user) { user.QuitEvent += () => { _FrameworkRoot.Remove(user); _User.Remove(user); }; _FrameworkRoot.Add(user); _User.Add(user); }
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); }
public ParkingStage(IStorage storage , User user) { _User = user; _Storage = storage; }
public VerifyStage(IStorage storage,User user) { _User = user; _Storage = storage; }