public IrcClient(INetworkView networkView) { Nickname = "Foobar"; Hostname = "Fooserv"; Username = "******"; this.networkView = networkView; }
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; }
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; }
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); }
protected BuildingBlocksBehaviour(IGameObject gameObject) { this.gameObject = gameObject; if (gameObject != null) { this.network = gameObject.network; this.networkView = gameObject.networkView; } }
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); }
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; }
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; }
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); } }
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); }
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; }
public GameObjectWrapper(GameObject wrappedObject) { this.wrappedObject = wrappedObject; this.wrappedNetwork = new NetworkWrapper(); this.wrappedNetworkView = new NetworkViewWrapper(wrappedObject.networkView); }
public IrcClient (INetworkView networkView) { Nickname = "Foobar"; Hostname = "Fooserv"; Username = "******"; this.networkView = networkView; }
public bool Connect (INetworkView net, string ipAddr, int port) { throw new NotImplementedException (); }
public IChatProvider DoConnect(INetworkView network) { return(Protocol.Connect(this, network)); }
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>()); }
public bool Connect(INetworkView net, string ipAddr, int port) { throw new NotImplementedException(); }
public IChatProvider DoConnect (INetworkView network) { return Protocol.Connect (this, network); }
private void SetNetworkView() { NetworkView = new NetworkViewWrapper(); NetworkView.SetNativeNetworkView(GetComponent<NetworkView>()); }
public Server(INetwork network, INetworkView networkView) { this.network = network; this.networkView = networkView; }
public NetworkPresenter(INetworkView view) : this(view, new NetworkMapProvider(), new NodeConfigurationProvider(), Settings.Default) { }