public OutboundPhotonPeer(PhotonApplication application, PeerInfo peerInfo) : base(application) { _application = application; _peerInfo = peerInfo; SetPrivateCustomTypeCache(new TypeCache().GetCache()); }
public PhotonServerPeer(IRpcProtocol protocol, IPhotonPeer photonPeer, IEnumerable <IServerData> serverData, PhotonServerHandlerList handlerList, PhotonApplication application) : base(protocol, photonPeer) { foreach (var data in serverData) { _serverData.Add(data.GetType(), data); } _handlerList = handlerList; Server = application; }
public SubServerClientPeer(IEnumerable <IClientData> clientData, PhotonApplication application, Guid peerId) { _peerId = peerId; _server = application; foreach (var data in clientData) { _clientData.Add(data.GetType(), data); } }
public static CharacterData GetCharacterData(PhotonApplication server, IMessage message) { if (message.Parameters.ContainsKey((byte)ClientParameterCode.PeerId)) { var peerId = new Guid((Byte[])message.Parameters[(byte)ClientParameterCode.PeerId]); var clients = server.ConnectionCollection <SubServerConnectionCollection>().Clients; return(clients[peerId].ClientData <CharacterData>()); } return(null); }
public SetupFixture() { LogManager.SetLoggerFactory(Log4NetLoggerFactory.Instance); var fi = new FileInfo("..\\..\\log4net.config"); XmlConfigurator.ConfigureAndWatch(fi); LogManager.GetCurrentClassLogger().Info("SETUP"); PhotonApplication.Initialize(); }
public PhotonClientPeer(IRpcProtocol protocol, IPhotonPeer photonPeer, IEnumerable <IClientData> clientData, PhotonClientHandlerList handlerList, PhotonApplication application) : base(protocol, photonPeer) { _peerID = Guid.NewGuid(); _handlerList = handlerList; _server = application; foreach (var data in clientData) { _clientData.Add(data.GetType(), data); } _server.ConnectionCollection <PhotonConnectionCollection>().Clients.Add(_peerID, this); }
public PhotonClientPeer(InitRequest request, IEnumerable <ClientData> clientData, PhotonClientHandlerList handlerList, PhotonApplication application) : base(request.Protocol, request.PhotonPeer) { _peerID = Guid.NewGuid(); _handlerList = handlerList; _server = application; foreach (var data in clientData) { _clientData.Add(data.GetType(), data); } _server.ConnectionCollection.Clients.Add(_peerID, this); }
public PhotonClientPeer(IRpcProtocol protocol, IPhotonPeer photonPeer, IEnumerable <ClientData> clientData, PhotonClientHandlerList handlerList, PhotonApplication application) : base(protocol, photonPeer) { _peerId = Guid.NewGuid(); _server = application; _handlerList = handlerList; foreach (ClientData data in clientData) { _clientData.Add(data.GetType(), data); } _server.ConnectionCollection.Clients.Add(_peerId, this); PlayerData = new PlayerData(); }
public ServerApplication(ServerConfiguration serverConfiguration, ILogger log, PhotonApplication server, IEnumerable <PeerInfo> peerInfo, IEnumerable <IBackgroundThread> backgroundThreads, IServerConnectionCollection <IServerType, IServerPeer> serverCollection, IConnectionCollection <IClientPeer> clientCollection, IEnumerable <IAfterServerRegistration> afterServerRegistrationEvents) { ServerConfiguration = serverConfiguration; Log = log; Server = server; _peerInfo = peerInfo; _backgroundThreads = backgroundThreads; _serverCollection = serverCollection; _clientCollection = clientCollection; _afterServerRegistrationEvents = afterServerRegistrationEvents; }
public HandleClientChatRequests(PhotonApplication application) : base(application) { }
public PlayerReadyQueueHandler(PhotonApplication application) : base(application) { }
public ResponseForwardHandler(PhotonApplication application) : base(application) { }
public PlayerMovementHandler(PhotonApplication application) : base(application) { }
public ChatServerRegisterEventHandler(PhotonApplication application, SubServerClientPeer.Factory clientFactory) : base(application) { _clientFactory = clientFactory; }
public LoginServerListCharactersHandler(PhotonApplication application) : base(application) { }
public ComplexServerLoginRequestHandler(PhotonApplication application, SubServerClientPeer.Factory clientFactory) : base(application) { _clientFactory = clientFactory; }
public Util(PhotonApplication application) { Server = application; }
public LoginServerSelectCharacterHandler(PhotonApplication application) : base(application) { }
protected PhotonClientHandler(PhotonApplication application) { Server = application; }
protected DefaultResponseHandler(PhotonApplication application) : base(application) { }
public ChatServerDeregisterEventHandler(PhotonApplication application) : base(application) { }
public DefaultRequestHandler(PhotonApplication application) : base(application) { }
public ChatServerDeregisterEventHandler(PhotonApplication application) : base(application) { }
public ResponseForwardHandler(PhotonApplication application) : base(application) { }
public RequestForwardHandler(PhotonApplication application) : base(application) { }
public ComplexServerRegisterRequestHandler(PhotonApplication application) : base(application) { }
public LoginServerUserLoggedOutHandler(PhotonApplication application) : base(application) { }
public HandleServerRegistration(PhotonApplication application) : base(application) { }
public EventForwardHandler(PhotonApplication application) : base(application) { }
public ChatServerRegisterEventHandler(PhotonApplication application, SubServerClientPeer.Factory clientFactory) : base(application) { _clientFactory = clientFactory; }
public LoginServerListCharactersHandler(PhotonApplication application) : base(application) { }
public LoginReponseHandler(PhotonApplication application) : base(application) { }
public ComplexServerRegisterRequestHandler(PhotonApplication application) : base(application) { }
public LoginServerSelectCharacterHandler(PhotonApplication application) : base(application) { }
public LoginReponseHandler(PhotonApplication application) : base(application) { }
public DefaultRequestHandler(PhotonApplication application) : base(application) { Log.DebugFormat("Recieved a request but no appropriate handler to handle it!"); }
public LoginServerCreateCharacterHandler(PhotonApplication application) : base(application) { }
public LoginServerCreateCharacterHandler(PhotonApplication application) : base(application) { }
public HandleServerRegistration(PhotonApplication application) : base(application) { }
public ErrorRequestForwardHandler(PhotonApplication application) : base(application) { }
public SelectCharacterResponseHandler(PhotonApplication application) : base(application) { }
public PhotonClientHandler(PhotonApplication application) { Server = application; }
public SelectCharacterResponseHandler(PhotonApplication application) : base(application) { }