Exemplo n.º 1
0
 public IrcClient(INetworkView networkView)
 {
     Nickname         = "Foobar";
     Hostname         = "Fooserv";
     Username         = "******";
     this.networkView = networkView;
 }
Exemplo n.º 2
0
 public IChatProvider Connect (NetworkInformation information, INetworkView networkView) {
     JacochatProvider provider = new JacochatProvider ();
     provider.Connect (networkView, information.Address, information.Port);
     Console.WriteLine (information.Nickname + " is nick");
     provider.Nickname = information.Nickname;
     return provider;
 }
Exemplo n.º 3
0
 public IChatProvider Connect (NetworkInformation information, INetworkView networkView) {
     IrcClient client = new IrcClient (networkView);
     Thread th = new Thread (() => {
         client.Connect (information.Address, 6697, information.UseEncryption);
     });
     th.Start ();
     return client;
 }
Exemplo n.º 4
0
        public IChatProvider Connect(NetworkInformation information, INetworkView networkView)
        {
            JacochatProvider provider = new JacochatProvider();

            provider.Connect(networkView, information.Address, information.Port);
            Console.WriteLine(information.Nickname + " is nick");
            provider.Nickname = information.Nickname;
            return(provider);
        }
Exemplo n.º 5
0
        protected BuildingBlocksBehaviour(IGameObject gameObject)
        {
            this.gameObject = gameObject;

            if (gameObject != null)
            {
                this.network     = gameObject.network;
                this.networkView = gameObject.networkView;
            }
        }
Exemplo n.º 6
0
        public IChatProvider Connect(NetworkInformation information, INetworkView networkView)
        {
            IrcClient client = new IrcClient(networkView);
            Thread    th     = new Thread(() => {
                client.Connect(information.Address, 6697, information.UseEncryption);
            });

            th.Start();
            return(client);
        }
Exemplo n.º 7
0
 public NetworkPresenter(INetworkView view, INetworkMapProvider mapProvider, INetworkConfigurationProvider configProvider, ISettings settings)
 {
     _view = view;
     _view.Load += OnLoad;
     _view.CloseClicked += OnCloseClicked;
     _view.SaveClicked += OnSaveClicked;
     _mapProvider = mapProvider;
     _configProvider = configProvider;
     _settings = settings;
 }
Exemplo n.º 8
0
 public bool Connect (INetworkView net, string ipAddr, int port) {
     client = new JacoChatClient.JacoChatClient ();
     try {
         client.Connect (ipAddr, port);
     } catch {
         return false;
     }
     network = net;
     client.MessageRecieved += Client_MessageRecieved;
     net.Connected (this);
     return true;
 }
Exemplo n.º 9
0
        private void drawRefreshIcon()
        {
            float size         = Screen.width * REFRESH_SIZE;
            float padding_left = Screen.width * REFRESH_PADDING;
            float padding_top  = Screen.height * REFRESH_PADDING;

            if (Icon.IsPressed(new Rect(padding_left, padding_top, size, size), RefreshIcon, Color.white))
            {
                INetworkView networkView = Player.Player.LocalPlayer.networkView;
                networkView.RPC("ThrowAwayBlock", RPCMode.Server);
            }
        }
Exemplo n.º 10
0
 public bool Connect(INetworkView net, string ipAddr, int port)
 {
     client = new JacoChatClient.JacoChatClient();
     try {
         client.Connect(ipAddr, port);
     } catch {
         return(false);
     }
     network = net;
     client.MessageRecieved += Client_MessageRecieved;
     net.Connected(this);
     return(true);
 }
Exemplo n.º 11
0
 public bool Connect (INetworkView net, string ipAddr, int port) {
     client = new JacoChatClient.JacoChatClient ();
     try {
         client.Connect (ipAddr, port);
     } catch {
         return false;
     }
     network = net;
     client.PrivmsgRecieved += Client_PrivmsgRecieved;
     client.NamesRecieved += Client_NamesRecieved;
     client.NickRecieved += Client_NickRecieved;
     client.JoinRecieved += Client_JoinRecieved;
     client.PartRecieved += Client_PartRecieved;
     client.ErrorRecieved += Client_ErrorRecieved;
     client.UnknownRecieved += Client_UnknownRecieved;
     client.TopicRecieved += Client_TopicRecieved;
     client.QuitRecieved += Client_QuitRecieved;
     client.WhoisRecieved += Client_WhoisRecieved;
     net.Connected (this);
     return true;
 }
Exemplo n.º 12
0
 public GameObjectWrapper(GameObject wrappedObject)
 {
     this.wrappedObject      = wrappedObject;
     this.wrappedNetwork     = new NetworkWrapper();
     this.wrappedNetworkView = new NetworkViewWrapper(wrappedObject.networkView);
 }
Exemplo n.º 13
0
 public IrcClient (INetworkView networkView) {
     Nickname = "Foobar";
     Hostname = "Fooserv";
     Username = "******";
     this.networkView = networkView;
 }
Exemplo n.º 14
0
 public bool Connect (INetworkView net, string ipAddr, int port) {
     throw new NotImplementedException ();
 }
Exemplo n.º 15
0
 public IChatProvider DoConnect(INetworkView network)
 {
     return(Protocol.Connect(this, network));
 }
Exemplo n.º 16
0
 public void StartServer()
 {
     NetworkView = new NetworkViewWrapper();
     NetworkView.SetNativeNetworkView(GetComponent<NetworkView>());
     Network.InitializeServer(32, GameData.PORT, false);//!UnityEngine.Network.HavePublicAddress());
     Connected = true;
     if (!Network.IsServer())
     {
         return;
     }
     if (!GameData.USE_HARDCODED_IP)
     {
         MasterServer.RegisterHost(GameData.GAME_NAME, "DuoDrive_Game");
     }
 }
 public void Start()
 {
     NetworkView = new NetworkViewWrapper();
     NetworkView.SetNativeNetworkView(GetComponent<NetworkView>());
 }
Exemplo n.º 18
0
 public bool Connect(INetworkView net, string ipAddr, int port)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 19
0
 public IChatProvider DoConnect (INetworkView network) {
     return Protocol.Connect (this, network);
 }
Exemplo n.º 20
0
 private void SetNetworkView()
 {
     NetworkView = new NetworkViewWrapper();
     NetworkView.SetNativeNetworkView(GetComponent<NetworkView>());
 }
Exemplo n.º 21
0
 public Server(INetwork network, INetworkView networkView)
 {
     this.network     = network;
     this.networkView = networkView;
 }
Exemplo n.º 22
0
 public NetworkPresenter(INetworkView view)
     : this(view, new NetworkMapProvider(), new NodeConfigurationProvider(), Settings.Default)
 {
 }