public static int AddControllerToGameObject_s(IntPtr l) { int result; try { GameObject root; LuaObject.checkType <GameObject>(l, 1, out root); string path; LuaObject.checkType(l, 2, out path); TypeDNName ctrlTypeDNName; LuaObject.checkType <TypeDNName>(l, 3, out ctrlTypeDNName); string ctrlName; LuaObject.checkType(l, 4, out ctrlName); string luaModuleName; LuaObject.checkType(l, 5, out luaModuleName); bool autoBind; LuaObject.checkType(l, 6, out autoBind); PrefabControllerBase o = PrefabControllerBase.AddControllerToGameObject(root, path, ctrlTypeDNName, ctrlName, luaModuleName, autoBind); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x0600D596 RID: 54678 RVA: 0x003A4570 File Offset: 0x003A2770 public void ShowRewardGoodsDesc(PrefabControllerBase ctrl, GoodsType goodsType, int goodsId, int alignType = 0, GameObject gameObjectForPosCalc = null, bool isNeedAutoClose = true) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ShowRewardGoodsDescPrefabControllerBaseGoodsTypeInt32Int32GameObjectBoolean_hotfix != null) { this.m_ShowRewardGoodsDescPrefabControllerBaseGoodsTypeInt32Int32GameObjectBoolean_hotfix.call(new object[] { this, ctrl, goodsType, goodsId, alignType, gameObjectForPosCalc, isNeedAutoClose }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; base.gameObject.SetActive(true); PrefabControllerCreater.CreateAllControllers(base.gameObject); RewardGoodsDescUIController component = base.gameObject.GetComponent <RewardGoodsDescUIController>(); component.InitRewardGoodsDescInfo(goodsType, goodsId, isNeedAutoClose); if (gameObjectForPosCalc == null) { gameObjectForPosCalc = ctrl.gameObject; } component.gameObject.SetActive(true); component.StartCoroutine(RewardGoodsDescUIController.Co_ShowRewardGoodsDesc(component, gameObjectForPosCalc, alignType)); }
// Token: 0x06006B55 RID: 27477 RVA: 0x001E1BF0 File Offset: 0x001DFDF0 public static PrefabControllerBase AddControllerToGameObject(Type type, GameObject go) { if (go == null) { return(null); } return(PrefabControllerBase.AddControllerToGameObject(go, "./", new TypeDNName(string.Empty + type.FullName), type.Name, null, true)); }
// Token: 0x06006B54 RID: 27476 RVA: 0x001E1B84 File Offset: 0x001DFD84 public static T AddControllerToGameObject <T>(GameObject go) where T : class { if (go == null) { return((T)((object)null)); } return(PrefabControllerBase.AddControllerToGameObject(go, "./", new TypeDNName(string.Empty + typeof(T).FullName), typeof(T).Name, null, true) as T); }
// Token: 0x0600D5F1 RID: 54769 RVA: 0x003A554C File Offset: 0x003A374C public static RewardGoodsDescUITask StartUITask(PrefabControllerBase ctrl, GoodsType goodsType, int goodsId, int alignType = 0, GameObject gameObjectForPosCalc = null, bool isNeedAutoClose = true) { UIIntentCustom uiintentCustom = new UIIntentCustom(typeof(RewardGoodsDescUITask).Name, null); uiintentCustom.SetParam("Ctrl", ctrl); uiintentCustom.SetParam("Type", goodsType); uiintentCustom.SetParam("Id", goodsId); uiintentCustom.SetParam("AlignType", alignType); uiintentCustom.SetParam("GameObjectForPosScale", gameObjectForPosCalc); uiintentCustom.SetParam("IsNeedAutoClose ", isNeedAutoClose); return(UIManager.Instance.StartUITask(uiintentCustom, false, false, null) as RewardGoodsDescUITask); }
public static int BindResContainer(IntPtr l) { int result; try { PrefabControllerBase prefabControllerBase = (PrefabControllerBase)LuaObject.checkSelf(l); prefabControllerBase.BindResContainer(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_CtrlName(IntPtr l) { int result; try { PrefabControllerBase prefabControllerBase = (PrefabControllerBase)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, prefabControllerBase.CtrlName); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetNextUpdateExecutor(IntPtr l) { int result; try { PrefabControllerBase prefabControllerBase = (PrefabControllerBase)LuaObject.checkSelf(l); PrefabControllerNextUpdateExecutor nextUpdateExecutor = prefabControllerBase.GetNextUpdateExecutor(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, nextUpdateExecutor); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_m_resContainer(IntPtr l) { int result; try { PrefabControllerBase prefabControllerBase = (PrefabControllerBase)LuaObject.checkSelf(l); PrefabResourceContainer resContainer; LuaObject.checkType <PrefabResourceContainer>(l, 2, out resContainer); prefabControllerBase.m_resContainer = resContainer; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetChildByPath(IntPtr l) { int result; try { PrefabControllerBase prefabControllerBase = (PrefabControllerBase)LuaObject.checkSelf(l); string path; LuaObject.checkType(l, 2, out path); GameObject childByPath = prefabControllerBase.GetChildByPath(path); LuaObject.pushValue(l, true); LuaObject.pushValue(l, childByPath); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int Initlize(IntPtr l) { int result; try { PrefabControllerBase prefabControllerBase = (PrefabControllerBase)LuaObject.checkSelf(l); string ctrlName; LuaObject.checkType(l, 2, out ctrlName); bool bindNow; LuaObject.checkType(l, 3, out bindNow); prefabControllerBase.Initlize(ctrlName, bindNow); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int AddControllerToGameObject_s(IntPtr l) { int result; try { Type type; LuaObject.checkType(l, 1, out type); GameObject go; LuaObject.checkType <GameObject>(l, 2, out go); PrefabControllerBase o = GameObjectUtility.AddControllerToGameObject(type, go); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetAssetInContainer(IntPtr l) { int result; try { int total = LuaDLL.lua_gettop(l); if (LuaObject.matchType(l, total, 2, typeof(string))) { PrefabControllerBase prefabControllerBase = (PrefabControllerBase)LuaObject.checkSelf(l); string resName; LuaObject.checkType(l, 2, out resName); UnityEngine.Object assetInContainer = prefabControllerBase.GetAssetInContainer <UnityEngine.Object>(resName); LuaObject.pushValue(l, true); LuaObject.pushValue(l, assetInContainer); result = 2; } else if (LuaObject.matchType(l, total, 2, typeof(string))) { PrefabControllerBase prefabControllerBase2 = (PrefabControllerBase)LuaObject.checkSelf(l); string resName2; LuaObject.checkType(l, 2, out resName2); UnityEngine.Object assetInContainer2 = prefabControllerBase2.GetAssetInContainer(resName2); LuaObject.pushValue(l, true); LuaObject.pushValue(l, assetInContainer2); result = 2; } else { LuaObject.pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function GetAssetInContainer to call"); result = 2; } } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }