public EnemyCreator(string scriptPath) { scriptAPI = new ScriptAPI(); var script = new Emugen.Script.Script <ScriptAPI>(scriptPath, scriptAPI); script.Run(); }
static void Main() { // 準備 { GyoMetsu.Config.MainConfig.Setup(); var scriptFrags = new ScriptFlags(); { if (ActionSkillDatas.Instance == null) { new ActionSkillDatas(); } var datas = ActionSkillDatas.Instance; var files = System.IO.Directory.GetFiles("data/script/action_skill/", "*.cs"); foreach (var i in files) { datas.Load(i); } } } var data = new Data.DataCreater(); var script = new Emugen.Script.Script <StartScript>("data/script/init.cs", new StartScript()); script.Run(); var runner = new Emugen.OpenTK.Runner(script.api.Title); foreach (var action in script.api._Actions) { action(runner); } }
public ActionEffectUpdate(string scriptPath, Action action, AutoDisposer autoDisposer) { this.autoDisposer = autoDisposer; script = new Emugen.Script.Script <ScriptAPI>(scriptPath, new ScriptAPI()); script.api.MainAction = action; SetupUpdateAndAutoDispose(autoDisposer); script.Run(); foreach (var i in script.api.TimeEvents) { if (timerMax < i.Time) { timerMax = i.Time; } } }
void ThreadScriptRun() { var script = new Emugen.Script.Script <ScriptAPI>(talkScriptPath, scriptAPI); script.Run(); }
private void Form1_Load(object sender, EventArgs e) { this.FormClosed += Form1_FormClosed; this.FormBorderStyle = FormBorderStyle.FixedSingle; mainFileWriteThread = new EasyLoopThread(mainFileWriteThreadAction, null, 100); script = new Emugen.Script.Script <ConfigScriptAPI>(configFilePath, new ConfigScriptAPI()); script.Run(); script.Run(); if (script.api.OutputDirectoryPath != "") { targetRootDirectory = textBox1.Text = script.api.OutputDirectoryPath; } else { targetRootDirectory = textBox1.Text = System.IO.Directory.GetCurrentDirectory(); } //WaveInEvent.DeviceCount、WaveInEvent.GetCapabilities for (var i = 0; i < WaveInEvent.DeviceCount; i++) { var p = WaveInEvent.GetCapabilities(i); comboBox1.Items.Add(p.ProductName); if (script.api.DeviceName == p.ProductName) { inputDeviceNo = i; } } comboBox1.SelectedIndex = inputDeviceNo; checkBox1.Checked = script.api.IsMonaural; comboBox2.Items.Add("mp3"); comboBox2.Items.Add("wav"); if (script.api.SaveType == "mp3") { comboBox2.SelectedIndex = 0; } else { comboBox2.SelectedIndex = 1; } { var btn = new VoiceRecoder.EmugenWFUI.Button(this, 5, 5, 160, 60, "録音開始", 24); btn.Click = () => { if (isStart) { btnStop_Click(); isStart = !isStart; btn.Text = "録音開始"; } else { btnStart(); isStart = !isStart; btn.Text = "録音終了"; } }; } { var btn = new VoiceRecoder.EmugenWFUI.Button(this, 5, 70, 160, 40, "フォルダを開く", 14); btn.Click = () => { var dir = CreateTargetDirectory(); System.Diagnostics.Process.Start(dir); }; } }
public ActionSkillCreator(string scriptPath) { var script = new Emugen.Script.Script <ScriptAPI>(scriptPath, scriptAPI); script.Run(); }