Inheritance: CritterChainEventArgs
Example #1
0
 // called by engine
 bool RaiseUseItem(Item item, Critter on_cr, Item on_item, IntPtr on_scenery)
 {
     if (UseItem != null)
     {
         var e = new CritterUseItemEventArgs(this, item, on_cr, on_item, Scenery.FromNative(on_scenery));
         UseItem(this, e);
         return(e.Prevent);
     }
     return(false);
 }
Example #2
0
 // called by engine
 bool RaiseUseItem(Item item, Critter on_cr, Item on_item, IntPtr on_scenery)
 {
     if (UseItem != null)
     {
         var e = new CritterUseItemEventArgs(this, item, on_cr, on_item, Scenery.FromNative(on_scenery));
         UseItem(this, e);
         return e.Prevent;
     }
     return false;
 }