示例#1
0
文件: NewBotDlg.cs 项目: lythm/orb3d
        public NewBotDlg(string filePath)
        {
            InitializeComponent();

            BotDesc = new BotStudio.BotEngine.BotDescriptor();
            BotDesc.Script = filePath;
            BotDesc.Name = "Bot("+ filePath + ")";

            nameBox.Text = BotDesc.Name;
        }
示例#2
0
文件: BotPropDlg.cs 项目: lythm/orb3d
        public BotPropDlg(string filePath)
        {
            InitializeComponent();

            BotDesc = new BotStudio.BotEngine.BotDescriptor();
            BotDesc.Script = filePath;
            BotDesc.Name = ConfigurationManager.AppSettings["DefaultBotName"];
            BotDesc.Count = 1;
            BotDesc.Silenced = false;
            BotDesc.Host.Address = IPAddress.Parse(ConfigurationManager.AppSettings["DefaultHostAddress"]);
            BotDesc.Host.Port = Convert.ToInt32(ConfigurationManager.AppSettings["DefaultHostPort"]);
        }