public PreConstructShopViaListEvent(ShopMenu shopMenu, WrappedProxyList <ItemAccessor, Item> itemsForSale, int currency = 0, string who = null) { ShopMenu = shopMenu; ItemsForSale = itemsForSale; Currency = currency; Who = who; }
public static DetourEvent PostConstructShopViaListCallback(ShopMenuAccessor accessor, IList list, int currency, string who) { var itemsForSale = new WrappedProxyList <ItemAccessor, Item>(list, i => new Item(WrappedGame, i)); var @event = new PostConstructShopViaListEvent(new ShopMenu(WrappedGame, accessor), itemsForSale, currency, who); FireEvent(@event); return(@event); }