示例#1
0
 public HotConstructor(Action <T, U, int> action)
 {
     middle             = new HotMiddleware();
     middle.Context     = this;
     middle.initializer = new UIInitializer(HotUIBase.ObjectFields(typeof(T)));
     middle.creator     = Create;
     middle.caller      = Call;
     Invoke             = action;
 }
示例#2
0
 public HotUILinker(UIContainer container, string mod)
 {
     con                   = container;
     model                 = HGUIManager.FindChild(container.model, mod);
     middle                = new ObjectLinker(container);
     middle.ItemUpdate     = MItemUpdate;
     middle.CalculItemHigh = MCalculItemHigh;
     middle.ItemCreate     = MItemCreate;
     initializer           = new UIInitializer(HotUIBase.ObjectFields(typeof(T)));
 }