public static DetourEvent SetUpShopOwnerCallback(ShopMenuAccessor accessor, string who) { var @event = new SetUpShopOwnerEvent(new ShopMenu(WrappedGame, accessor), who); FireEvent(@event); return(@event); }
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); }
public ShopMenu(StaticContext parent, ShopMenuAccessor accessor) : base(parent, accessor) { }