Пример #1
0
 public OutgoingMasterServerPeer(IRpcProtocol protocol, IPhotonPeer nativePeer, LoginApplication application)
     : base(protocol, nativePeer)
 {
     this.application = application;
     methodInvoker    = new S2SMethodInvoker(application);
     log.InfoFormat("connection to master at {0}:{1} established (id={2}), serverId={3}", this.RemoteIP, this.RemotePort, this.ConnectionId, LoginApplication.ServerId);
     this.RequestFiber.Enqueue(this.Register);
 }
Пример #2
0
        public LoginClientPeer(InitRequest initRequest, LoginApplication application)
            : base(initRequest.Protocol, initRequest.PhotonPeer)
        {
            this.application = application;
            invoker          = new MethodInvoker(application, this);

            mOperationHandlers = new Dictionary <OperationCode, BaseOperationHandler>();
            mOperationHandlers.Add(OperationCode.Login, new LoginOperationHandler(application, this));
            mOperationHandlers.Add(OperationCode.GetUsersOnline, new GetUsersOnlineHandler(application, this));
            mOperationHandlers.Add(OperationCode.RegisterUser, new RegisterUserHandler(application, this));
            //mOperationHandlers.Add(OperationCode.GetUserPasses, new GetUserPassesOperationHandler(application, this));
            mOperationHandlers.Add(OperationCode.RecoverUser, new RecoverUserOperationHandler(application, this));
            //mOperationHandlers.Add(OperationCode.UsePass, new UsePassOperationHandler(application, this));
            //mOperationHandlers.Add(OperationCode.AddPass, new AddPassOperationHandler(application, this));
            mOperationHandlers.Add(OperationCode.ExecAction, new InvokeMethodOperationHandler(application, this));
            mOperationHandlers.Add(OperationCode.GetNebulaCredits, new GetNebulaCreditsOperationHandler(application, this));
        }
Пример #3
0
 public InapManager(LoginApplication app)
 {
     m_Application        = app;
     m_PutTransactionPool = new Server2ServerTransactionPool <PUTInventoryItemTransactionStart, PUTInventoryItemTransactionEnd>(this);
 }
Пример #4
0
 public S2SMethodInvoker(LoginApplication application)
 {
     this.application = application;
 }
Пример #5
0
 public StatCollection(LoginApplication app)
 {
     m_Application = app;
 }
Пример #6
0
 public MethodInvoker(LoginApplication app, LoginClientPeer impeer)
 {
     application = app;
     peer        = impeer;
 }
Пример #7
0
 public LoggedInUserCollection(LoginApplication application)
 {
     this.application = application;
 }