Beispiel #1
0
        public static DetourEvent SetUpShopOwnerCallback(ShopMenuAccessor accessor, string who)
        {
            var @event = new SetUpShopOwnerEvent(new ShopMenu(WrappedGame, accessor), who);

            FireEvent(@event);
            return(@event);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public ShopMenu(StaticContext parent, ShopMenuAccessor accessor) :
     base(parent, accessor)
 {
 }