Beispiel #1
0
        public override void Load()
        {
            if (!Main.dedServ)
            {
                clientTCP = new ClientTCP(this);
                clientTCP.OpenConnection(hostAddress, port);

                clientUDP = new ClientUDP(this);
                clientUDP.OpenSocket(hostAddress, 5000);
            }

            if (referenceDictionary == null)
            {
                //referenceDictionary = new Dictionary<string, Delegate>();
                //referenceDictionary.Add("Player.Position", (x, y) => {DelegateManager.SendPlayerPosition();});
            }
        }