public EventHandler <InteractEventArgs> SimpleDialog(string filename, string objectname) { return((sender, args) => { var scene = ((OverworldScene)sender); var dialog = Dialog.Fetch(filename, objectname); scene.StartDialog(dialog); }); }
public EventHandler <InteractEventArgs> SimpleMerchant(string filename, string merchantname) { return((sender, args) => { var scene = ((OverworldScene)sender); var dialog = Dialog.Fetch(filename, merchantname); dialog.OnExit = (s, a) => ((SRPGGame)Game).LaunchShop(filename, merchantname); scene.StartDialog(dialog); }); }