/** 构造必需的control组 */ protected override void makeControls() { MainFactoryControl factory = GameC.mainFactory = createFactoryControl(); //先注册基础数据类型 BytesControl.addDataMaker(new BaseDataMaker()); GameC.nativeUI = factory.createGameNUIControl(); GameC.mainLogin = factory.createLoginControl(); GameC.save = factory.createLocalSaveControl(); GameC.audio = factory.createAudioControl(); GameC.ILRuntime = factory.createILRuntimeControl(); }
/** 添加构造器 */ public void addResponseMaker(DataMaker maker) { BytesControl.addDataMaker(maker); _maker.addDic(maker); }
/// <summary> /// 添加一个 /// </summary> protected void add(DataMaker maker) { BytesControl.addDataMaker(maker); }