Пример #1
0
 public EventHandler <InteractEventArgs> SimpleDialog(string filename, string objectname)
 {
     return((sender, args) =>
     {
         var scene = ((OverworldScene)sender);
         var dialog = Dialog.Fetch(filename, objectname);
         scene.StartDialog(dialog);
     });
 }
Пример #2
0
 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);
     });
 }