public override void Action(SF4Control sf4control, bool sendInputs) { if (sendInputs) { sf4control.hold(inputs); } if (playSound) { if (inputs.Intersect(directions).Count() > 0) { roadie.playSound(Roadie.HOLD_DIRECTION_SOUND); } if (inputs.Intersect(buttons).Count() > 0) { roadie.playSound(Roadie.HOLD_BUTTON_SOUND); } } }
public MainForm() { InitializeComponent(); sf4memory = new SF4Memory(chkSteamVersion.Checked); sf4control = new SF4Control(sf4memory); }
public override void Action(SF4Control sf4control, bool sendInputs) { sf4control.waitFrames(frames); if (playSound) { roadie.playSound(Roadie.WAIT_SOUND); } }
//core method of the timeline items, gets called when timeline is played public abstract void Action(SF4Control sf4control, bool sendInputs);
public override void Action(SF4Control sf4control, bool sendInputs) { if (sendInputs) { sf4control.press(inputs); } else { //press event waits 1 frame, if send inputs is disabled wait frame is maintained sf4control.waitFrames(1); } if (playSound) { if (inputs.Intersect(directions).Count() > 0) { roadie.playSound(Roadie.PRESS_DIRECTION_SOUND); } if (inputs.Intersect(buttons).Count() > 0) { roadie.playSound(Roadie.PRESS_BUTTON_SOUND); } } }