Exemple #1
0
 /// <summary>
 /// Create a blank project panel (no project yet.)
 /// </summary>
 public ProjectPanel()
 {
     InitializeComponent();
     project         = null;
     commandManager  = new Commands.CommandManager(this);
     nodeMap         = new Dictionary <urakawa.core.TreeNode, Control>();
     selected        = new List <Selectable>();
     pixelsPerSecond = WaveformPanel.DEFAULT_PIXELS_PER_SECOND;
 }
Exemple #2
0
        public GameServer(Configuration config, Resources.ResourceManager resManager, Commands.CommandManager commandManager)
        {
            m_configuration = config;

            commandManager.SetGameServer(this);
            CommandManager = commandManager;

            m_resourceManager = resManager;
            m_resourceManager.SetGameServer(this);

            var dnsEntry = Dns.GetHostEntry("37.46.132.72");

            foreach (var address in dnsEntry.AddressList)
            {
                if (address.AddressFamily == AddressFamily.InterNetwork)
                {
                    m_serverList = new IPEndPoint(address, 30110);
                }
            }

            UseAsync = true;
        }