public void SessionAuthenticated(UserInfo userInfo)
        {
            mUserInfo = userInfo;
            mReactors.Clear();
            ReactorCollection rCol = new ReactorCollection(typeof(UserReactor), new UserReactor());

            mReactors.Add(mReactorOffset++, rCol);
            rCol = new ReactorCollection(typeof(RoomReactor), new RoomReactor());
            mReactors.Add(mReactorOffset++, rCol);
            rCol = new ReactorCollection(typeof(MessengerReactor), new MessengerReactor());
            mReactors.Add(mReactorOffset++, rCol);
            rCol = new ReactorCollection(typeof(HandReactor), new HandReactor());
            mReactors.Add(mReactorOffset++, rCol);
            rCol = new ReactorCollection(typeof(CatalogueReactor), new CatalogueReactor());
            mReactors.Add(mReactorOffset++, rCol);

            if (InstanceManager.Game.Roles.HasRight(mUserInfo.iRole, "fuse_trade"))
            {
                rCol = new ReactorCollection(typeof(TradeReactor), new TradeReactor());
                mReactors.Add(mReactorOffset++, rCol);
            }

            if (InstanceManager.Game.Roles.HasRight(mUserInfo.iRole, "thor_moderator"))
            {
                rCol = new ReactorCollection(typeof(ModeratorReactor), new ModeratorReactor());
                mReactors.Add(mReactorOffset++, rCol);
            }

            if (InstanceManager.Game.Roles.HasRight(mUserInfo.iRole, "fuse_cfh"))
            {
                receiveCFH = true;
            }
        }
        private void RegisterDefaultReactor()
        {
            mReactors.Clear();
            ReactorCollection rCol = new ReactorCollection(typeof(LoginReactor), new LoginReactor());

            mReactors.Add(0, rCol);
            mReactorOffset = 1;
        }
        public int AddListener(Type listenerType, Reactor listenerObject)
        {
            int listenerId         = mReactorOffset++;
            ReactorCollection rCol = new ReactorCollection(listenerType, listenerObject);

            mReactors.Add(listenerId, rCol);
            return(listenerId);
        }
 public int AddListener(Type listenerType, Reactor listenerObject)
 {
     int listenerId = mReactorOffset++;
     ReactorCollection rCol = new ReactorCollection(listenerType, listenerObject);
     mReactors.Add(listenerId, rCol);
     return listenerId;
 }
 private void RegisterDefaultReactor()
 {
     mReactors.Clear();
     ReactorCollection rCol = new ReactorCollection(typeof(LoginReactor), new LoginReactor());
     mReactors.Add(0, rCol);
     mReactorOffset = 1;
 }
        public void SessionAuthenticated(UserInfo userInfo)
        {
            mUserInfo = userInfo;
            mReactors.Clear();
            ReactorCollection rCol = new ReactorCollection(typeof(UserReactor), new UserReactor());
            mReactors.Add(mReactorOffset++, rCol);
            rCol = new ReactorCollection(typeof(RoomReactor), new RoomReactor());
            mReactors.Add(mReactorOffset++, rCol);
            rCol = new ReactorCollection(typeof(MessengerReactor), new MessengerReactor());
            mReactors.Add(mReactorOffset++, rCol);
            rCol = new ReactorCollection(typeof(HandReactor), new HandReactor());
            mReactors.Add(mReactorOffset++, rCol);
            rCol = new ReactorCollection(typeof(CatalogueReactor), new CatalogueReactor());
            mReactors.Add(mReactorOffset++, rCol);

            if (InstanceManager.Game.Roles.HasRight(mUserInfo.iRole, "fuse_trade"))
            {
                rCol = new ReactorCollection(typeof(TradeReactor), new TradeReactor());
                mReactors.Add(mReactorOffset++, rCol);
            }

            if (InstanceManager.Game.Roles.HasRight(mUserInfo.iRole, "thor_moderator"))
            {
                rCol = new ReactorCollection(typeof(ModeratorReactor), new ModeratorReactor());
                mReactors.Add(mReactorOffset++, rCol);
            }

            if (InstanceManager.Game.Roles.HasRight(mUserInfo.iRole, "fuse_cfh"))
            {
                receiveCFH = true;
            }
        }