Example #1
0
 public AGSGameEvents(IBlockingEvent onLoad, IBlockingEvent <IRepeatedlyExecuteEventArgs> onRepeatedlyExecute,
                      IBlockingEvent <IRepeatedlyExecuteEventArgs> onRepeatedlyExecuteAlways,
                      IBlockingEvent onBeforeRender, IBlockingEvent onScreenResize,
                      IBlockingEvent <IGame> onSavedGameLoad, IBlockingEvent onRoomChanging, IDefaultInteractions defaultInteractions)
 {
     OnLoad = onLoad;
     OnRepeatedlyExecute       = onRepeatedlyExecute;
     OnRepeatedlyExecuteAlways = onRepeatedlyExecuteAlways;
     OnBeforeRender            = onBeforeRender;
     OnScreenResize            = onScreenResize;
     OnSavedGameLoad           = onSavedGameLoad;
     OnRoomChanging            = onRoomChanging;
     DefaultInteractions       = defaultInteractions;
 }
Example #2
0
 public InventorySubscriptions(IDefaultInteractions defaultInteractions)
 {
     _defaultInteractions = defaultInteractions;
     _subscriptions       = new ConcurrentDictionary <(IInventoryItem, IInventoryItem), IEvent <InventoryCombinationEventArgs> >(2, 400);
 }