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); }
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)); }
public InapManager(LoginApplication app) { m_Application = app; m_PutTransactionPool = new Server2ServerTransactionPool <PUTInventoryItemTransactionStart, PUTInventoryItemTransactionEnd>(this); }
public S2SMethodInvoker(LoginApplication application) { this.application = application; }
public StatCollection(LoginApplication app) { m_Application = app; }
public MethodInvoker(LoginApplication app, LoginClientPeer impeer) { application = app; peer = impeer; }
public LoggedInUserCollection(LoginApplication application) { this.application = application; }