Ejemplo n.º 1
0
 public InteractionHandler Set(InteractionMemberDelegate reaction)
 {
     handler = ToStaticInteractionDelegate(reaction);
     return this;
 }
Ejemplo n.º 2
0
 public InteractionHandler Add(InteractionMemberDelegate reaction)
 {
     return Add(ToStaticInteractionDelegate(reaction));
 }
Ejemplo n.º 3
0
 private static InteractionStaticDelegate ToStaticInteractionDelegate(InteractionMemberDelegate memberDelegate)
 {
     return delegate(Monster monster, Entity sender, EventArgs args) {
         memberDelegate.Invoke(sender, args);
     };
 }
Ejemplo n.º 4
0
 public InteractionHandler Add(InteractionMemberDelegate reaction)
 {
     return(Add(ToStaticInteractionDelegate(reaction)));
 }
Ejemplo n.º 5
0
 public InteractionHandler Set(InteractionMemberDelegate reaction)
 {
     handler = ToStaticInteractionDelegate(reaction);
     return(this);
 }
Ejemplo n.º 6
0
 private static InteractionStaticDelegate ToStaticInteractionDelegate(InteractionMemberDelegate memberDelegate)
 {
     return(delegate(Monster monster, Entity sender, EventArgs args) {
         memberDelegate.Invoke(sender, args);
     });
 }