コード例 #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
ファイル: LoginClientPeer.cs プロジェクト: OlegGelezcov/neb
        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
ファイル: S2SMethodInvoker.cs プロジェクト: OlegGelezcov/neb
 public S2SMethodInvoker(LoginApplication application)
 {
     this.application = application;
 }
コード例 #5
0
ファイル: DbUserStat.cs プロジェクト: OlegGelezcov/neb
 public StatCollection(LoginApplication app)
 {
     m_Application = app;
 }
コード例 #6
0
ファイル: MethodInvoker.cs プロジェクト: OlegGelezcov/neb
 public MethodInvoker(LoginApplication app, LoginClientPeer impeer)
 {
     application = app;
     peer        = impeer;
 }
コード例 #7
0
 public LoggedInUserCollection(LoginApplication application)
 {
     this.application = application;
 }