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; }
public InventorySubscriptions(IDefaultInteractions defaultInteractions) { _defaultInteractions = defaultInteractions; _subscriptions = new ConcurrentDictionary <(IInventoryItem, IInventoryItem), IEvent <InventoryCombinationEventArgs> >(2, 400); }