static int QPYX_Stop_YXQP(IntPtr L_YXQP) { try { ToLua.CheckArgsCount(L_YXQP, 2); UIImageAnimation QPYX_obj_YXQP = (UIImageAnimation)ToLua.CheckObject <UIImageAnimation>(L_YXQP, 1); int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2); QPYX_obj_YXQP.Stop(QPYX_arg0_YXQP); return(0); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int QPYX_UnregistMovieEvent_YXQP(IntPtr L_YXQP) { try { ToLua.CheckArgsCount(L_YXQP, 3); UIImageAnimation QPYX_obj_YXQP = (UIImageAnimation)ToLua.CheckObject <UIImageAnimation>(L_YXQP, 1); int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2); System.Action <int> QPYX_arg1_YXQP = (System.Action <int>)ToLua.CheckDelegate <System.Action <int> >(L_YXQP, 3); QPYX_obj_YXQP.UnregistMovieEvent(QPYX_arg0_YXQP, QPYX_arg1_YXQP); return(0); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int QPYX_get_value_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); ComponentCache.Injection <UIImageAnimation> QPYX_obj_YXQP = (ComponentCache.Injection <UIImageAnimation>)QPYX_o_YXQP; UIImageAnimation QPYX_ret_YXQP = QPYX_obj_YXQP.value; ToLua.Push(L_YXQP, QPYX_ret_YXQP); return(1); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index value on a nil value")); } }
static int Stop(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UIImageAnimation obj = (UIImageAnimation)ToLua.CheckObject <UIImageAnimation>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.Stop(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int QPYX_set_value_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); ComponentCache.Injection <UIImageAnimation> QPYX_obj_YXQP = (ComponentCache.Injection <UIImageAnimation>)QPYX_o_YXQP; UIImageAnimation QPYX_arg0_YXQP = (UIImageAnimation)ToLua.CheckObject <UIImageAnimation>(L_YXQP, 2); QPYX_obj_YXQP.value = QPYX_arg0_YXQP; return(0); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index value on a nil value")); } }
static int UnregistMovieEvent(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UIImageAnimation obj = (UIImageAnimation)ToLua.CheckObject <UIImageAnimation>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); System.Action <int> arg1 = (System.Action <int>)ToLua.CheckDelegate <System.Action <int> >(L, 3); obj.UnregistMovieEvent(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_movieName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIImageAnimation obj = (UIImageAnimation)o; string ret = obj.movieName; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index movieName on a nil value")); } }
static int set_value(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ComponentCache.Injection <UIImageAnimation> obj = (ComponentCache.Injection <UIImageAnimation>)o; UIImageAnimation arg0 = (UIImageAnimation)ToLua.CheckObject <UIImageAnimation>(L, 2); obj.value = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index value on a nil value")); } }
static int get_sprites(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIImageAnimation obj = (UIImageAnimation)o; System.Collections.Generic.List <UnityEngine.Sprite> ret = obj.sprites; ToLua.PushSealed(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index sprites on a nil value")); } }
static int get_frameCount(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIImageAnimation obj = (UIImageAnimation)o; int ret = obj.frameCount; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index frameCount on a nil value")); } }
static int set_frameTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIImageAnimation obj = (UIImageAnimation)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.frameTime = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index frameTime on a nil value")); } }
static int set_loop(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIImageAnimation obj = (UIImageAnimation)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.loop = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index loop on a nil value")); } }
static int set_sprites(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIImageAnimation obj = (UIImageAnimation)o; System.Collections.Generic.List <UnityEngine.Sprite> arg0 = (System.Collections.Generic.List <UnityEngine.Sprite>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Sprite>)); obj.sprites = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index sprites on a nil value")); } }
static int get_duration(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIImageAnimation obj = (UIImageAnimation)o; float ret = obj.duration; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index duration on a nil value")); } }
static int set_movieName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIImageAnimation obj = (UIImageAnimation)o; string arg0 = ToLua.CheckString(L, 2); obj.movieName = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index movieName on a nil value")); } }
static int get_value(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ComponentCache.Injection <UIImageAnimation> obj = (ComponentCache.Injection <UIImageAnimation>)o; UIImageAnimation ret = obj.value; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index value on a nil value")); } }
static int get_loop(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIImageAnimation obj = (UIImageAnimation)o; bool ret = obj.loop; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index loop on a nil value")); } }
/// <summary> /// 释放资源 /// </summary> /// <param name="disposing">释放托管资源为true,否则为false</param> protected override void Dispose(bool disposing) { if (this.m_AnimationTimer != null) { this.m_AnimationTimer.Dispose(); this.m_AnimationTimer = null; } if (this.m_FrameTimer != null) { this.m_FrameTimer.Dispose(); this.m_FrameTimer = null; } if (this.m_Animation != null) { this.m_Animation.Dispose(); this.m_Animation = null; } base.Dispose(disposing); }
static int QPYX_get_loop_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UIImageAnimation QPYX_obj_YXQP = (UIImageAnimation)QPYX_o_YXQP; bool QPYX_ret_YXQP = QPYX_obj_YXQP.loop; LuaDLL.lua_pushboolean(L_YXQP, QPYX_ret_YXQP); return(1); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index loop on a nil value")); } }
static int QPYX_get_sprites_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UIImageAnimation QPYX_obj_YXQP = (UIImageAnimation)QPYX_o_YXQP; System.Collections.Generic.List <UnityEngine.Sprite> QPYX_ret_YXQP = QPYX_obj_YXQP.sprites; ToLua.PushSealed(L_YXQP, QPYX_ret_YXQP); return(1); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index sprites on a nil value")); } }
static int QPYX_set_movieName_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UIImageAnimation QPYX_obj_YXQP = (UIImageAnimation)QPYX_o_YXQP; string QPYX_arg0_YXQP = ToLua.CheckString(L_YXQP, 2); QPYX_obj_YXQP.movieName = QPYX_arg0_YXQP; return(0); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index movieName on a nil value")); } }
static int QPYX_get_movieName_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UIImageAnimation QPYX_obj_YXQP = (UIImageAnimation)QPYX_o_YXQP; string QPYX_ret_YXQP = QPYX_obj_YXQP.movieName; LuaDLL.lua_pushstring(L_YXQP, QPYX_ret_YXQP); return(1); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index movieName on a nil value")); } }
static int QPYX_get_frameCount_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UIImageAnimation QPYX_obj_YXQP = (UIImageAnimation)QPYX_o_YXQP; int QPYX_ret_YXQP = QPYX_obj_YXQP.frameCount; LuaDLL.lua_pushinteger(L_YXQP, QPYX_ret_YXQP); return(1); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index frameCount on a nil value")); } }
static int QPYX_set_frameTime_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UIImageAnimation QPYX_obj_YXQP = (UIImageAnimation)QPYX_o_YXQP; float QPYX_arg0_YXQP = (float)LuaDLL.luaL_checknumber(L_YXQP, 2); QPYX_obj_YXQP.frameTime = QPYX_arg0_YXQP; return(0); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index frameTime on a nil value")); } }
static int QPYX_set_sprites_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UIImageAnimation QPYX_obj_YXQP = (UIImageAnimation)QPYX_o_YXQP; System.Collections.Generic.List <UnityEngine.Sprite> QPYX_arg0_YXQP = (System.Collections.Generic.List <UnityEngine.Sprite>)ToLua.CheckObject(L_YXQP, 2, typeof(System.Collections.Generic.List <UnityEngine.Sprite>)); QPYX_obj_YXQP.sprites = QPYX_arg0_YXQP; return(0); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index sprites on a nil value")); } }
static int QPYX_set_loop_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UIImageAnimation QPYX_obj_YXQP = (UIImageAnimation)QPYX_o_YXQP; bool QPYX_arg0_YXQP = LuaDLL.luaL_checkboolean(L_YXQP, 2); QPYX_obj_YXQP.loop = QPYX_arg0_YXQP; return(0); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index loop on a nil value")); } }
bool AddToRightList(Object obj) { Type type = m_totalTypeNameList[m_newSelectedId]; if (type == typeof(GameObject)) { GameObject value = obj as GameObject; if (value == null) { return(false); } var injection = new ComponentCache.GameObject_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.gameObjectList == null) { m_cache.gameObjectList = new List <ComponentCache.GameObject_Injection>(); } m_cache.gameObjectList.Add(injection); } else if (type == typeof(Transform)) { Transform value = obj as Transform; if (value == null) { return(false); } var injection = new ComponentCache.Transform_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.transformList == null) { m_cache.transformList = new List <ComponentCache.Transform_Injection>(); } m_cache.transformList.Add(injection); } else if (type == typeof(RectTransform)) { RectTransform value = obj as RectTransform; if (value == null) { return(false); } var injection = new ComponentCache.RectTransform_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.rectTransformList == null) { m_cache.rectTransformList = new List <ComponentCache.RectTransform_Injection>(); } m_cache.rectTransformList.Add(injection); } else if (type == typeof(Image)) { Image value = obj as Image; if (value == null) { return(false); } var injection = new ComponentCache.Image_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.imageList == null) { m_cache.imageList = new List <ComponentCache.Image_Injection>(); } m_cache.imageList.Add(injection); } else if (type == typeof(Text)) { Text value = obj as Text; if (value == null) { return(false); } var injection = new ComponentCache.Text_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.textList == null) { m_cache.textList = new List <ComponentCache.Text_Injection>(); } m_cache.textList.Add(injection); } else if (type == typeof(Toggle)) { Toggle value = obj as Toggle; if (value == null) { return(false); } var injection = new ComponentCache.Toggle_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.toggleList == null) { m_cache.toggleList = new List <ComponentCache.Toggle_Injection>(); } m_cache.toggleList.Add(injection); } else if (type == typeof(Button)) { Button value = obj as Button; if (value == null) { return(false); } var injection = new ComponentCache.Button_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.buttonList == null) { m_cache.buttonList = new List <ComponentCache.Button_Injection>(); } m_cache.buttonList.Add(injection); } else if (type == typeof(Slider)) { Slider value = obj as Slider; if (value == null) { return(false); } var injection = new ComponentCache.Slider_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.sliderList == null) { m_cache.sliderList = new List <ComponentCache.Slider_Injection>(); } m_cache.sliderList.Add(injection); } else if (type == typeof(ToggleGroup)) { ToggleGroup value = obj as ToggleGroup; if (value == null) { return(false); } var injection = new ComponentCache.ToggleGroup_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.toggleGroupList == null) { m_cache.toggleGroupList = new List <ComponentCache.ToggleGroup_Injection>(); } m_cache.toggleGroupList.Add(injection); } else if (type == typeof(InputField)) { InputField value = obj as InputField; if (value == null) { return(false); } var injection = new ComponentCache.InputField_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.inputFieldList == null) { m_cache.inputFieldList = new List <ComponentCache.InputField_Injection>(); } m_cache.inputFieldList.Add(injection); } else if (type == typeof(Graphic)) { Graphic value = obj as Graphic; if (value == null) { return(false); } var injection = new ComponentCache.Graphic_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.graphicList == null) { m_cache.graphicList = new List <ComponentCache.Graphic_Injection>(); } m_cache.graphicList.Add(injection); } else if (type == typeof(ScrollRect)) { ScrollRect value = obj as ScrollRect; if (value == null) { return(false); } var injection = new ComponentCache.ScrollRect_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.scrollRectList == null) { m_cache.scrollRectList = new List <ComponentCache.ScrollRect_Injection>(); } m_cache.scrollRectList.Add(injection); } else if (type == typeof(Scrollbar)) { Scrollbar value = obj as Scrollbar; if (value == null) { return(false); } var injection = new ComponentCache.Scrollbar_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.scrollbarList == null) { m_cache.scrollbarList = new List <ComponentCache.Scrollbar_Injection>(); } m_cache.scrollbarList.Add(injection); } else if (type == typeof(Dropdown)) { Dropdown value = obj as Dropdown; if (value == null) { return(false); } var injection = new ComponentCache.Dropdown_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.dropdownList == null) { m_cache.dropdownList = new List <ComponentCache.Dropdown_Injection>(); } m_cache.dropdownList.Add(injection); } else if (type == typeof(GridLayoutGroup)) { GridLayoutGroup value = obj as GridLayoutGroup; if (value == null) { return(false); } var injection = new ComponentCache.GridLayoutGroup_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.gridLayoutGroupList == null) { m_cache.gridLayoutGroupList = new List <ComponentCache.GridLayoutGroup_Injection>(); } m_cache.gridLayoutGroupList.Add(injection); } else if (type == typeof(RawImage)) { RawImage value = obj as RawImage; if (value == null) { return(false); } var injection = new ComponentCache.RawImage_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.rawImageList == null) { m_cache.rawImageList = new List <ComponentCache.RawImage_Injection>(); } m_cache.rawImageList.Add(injection); } else if (type == typeof(AudioSource)) { AudioSource value = obj as AudioSource; if (value == null) { return(false); } var injection = new ComponentCache.AudioSource_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.audioSourceList == null) { m_cache.audioSourceList = new List <ComponentCache.AudioSource_Injection>(); } m_cache.audioSourceList.Add(injection); } else if (type == typeof(littlerbird.UI.QuickGrid)) { littlerbird.UI.QuickGrid value = obj as littlerbird.UI.QuickGrid; if (value == null) { return(false); } var injection = new ComponentCache.QuickGrid_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.quickGridList == null) { m_cache.quickGridList = new List <ComponentCache.QuickGrid_Injection>(); } m_cache.quickGridList.Add(injection); } else if (type == typeof(SimpleScrollView)) { SimpleScrollView value = obj as SimpleScrollView; if (value == null) { return(false); } var injection = new ComponentCache.SimpleScrollView_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.simpleScrollViewList == null) { m_cache.simpleScrollViewList = new List <ComponentCache.SimpleScrollView_Injection>(); } m_cache.simpleScrollViewList.Add(injection); } else if (type == typeof(Animation)) { Animation value = obj as Animation; if (value == null) { return(false); } var injection = new ComponentCache.Animation_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.animationList == null) { m_cache.animationList = new List <ComponentCache.Animation_Injection>(); } m_cache.animationList.Add(injection); } else if (type == typeof(Animator)) { Animator value = obj as Animator; if (value == null) { return(false); } var injection = new ComponentCache.Animator_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.animatorList == null) { m_cache.animatorList = new List <ComponentCache.Animator_Injection>(); } m_cache.animatorList.Add(injection); } else if (type == typeof(SpriteAtlas)) { SpriteAtlas value = obj as SpriteAtlas; if (value == null) { return(false); } var injection = new ComponentCache.SpriteAtlas_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.spriteAtlasList == null) { m_cache.spriteAtlasList = new List <ComponentCache.SpriteAtlas_Injection>(); } m_cache.spriteAtlasList.Add(injection); } else if (type == typeof(SpriteHolder)) { SpriteHolder value = obj as SpriteHolder; if (value == null) { return(false); } var injection = new ComponentCache.SpriteHolder_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.spriteHolderList == null) { m_cache.spriteHolderList = new List <ComponentCache.SpriteHolder_Injection>(); } m_cache.spriteHolderList.Add(injection); } else if (type == typeof(UIStateSwitcher)) { UIStateSwitcher value = obj as UIStateSwitcher; if (value == null) { return(false); } var injection = new ComponentCache.UIStateSwitcher_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.uiStateSwitcherList == null) { m_cache.uiStateSwitcherList = new List <ComponentCache.UIStateSwitcher_Injection>(); } m_cache.uiStateSwitcherList.Add(injection); } else if (type == typeof(TextWrap)) { TextWrap value = obj as TextWrap; if (value == null) { return(false); } var injection = new ComponentCache.TextWrap_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.textWrapList == null) { m_cache.textWrapList = new List <ComponentCache.TextWrap_Injection>(); } m_cache.textWrapList.Add(injection); } else if (type == typeof(UIImageAnimation)) { UIImageAnimation value = obj as UIImageAnimation; if (value == null) { return(false); } var injection = new ComponentCache.UIImageAnimation_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.uiImageAnimList == null) { m_cache.uiImageAnimList = new List <ComponentCache.UIImageAnimation_Injection>(); } m_cache.uiImageAnimList.Add(injection); } else if (type == typeof(ComponentCache)) { ComponentCache value = obj as ComponentCache; if (value == null) { return(false); } var injection = new ComponentCache.ComponentCache_Injection(); injection.name = m_newObjName; injection.value = value; if (m_cache.cacheList == null) { m_cache.cacheList = new List <ComponentCache.ComponentCache_Injection>(); } m_cache.cacheList.Add(injection); } else { return(false); } return(true); }
static int QPYX_get_duration_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UIImageAnimation QPYX_obj_YXQP = (UIImageAnimation)QPYX_o_YXQP; float QPYX_ret_YXQP = QPYX_obj_YXQP.duration; LuaDLL.lua_pushnumber(L_YXQP, QPYX_ret_YXQP); return(1); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index duration on a nil value")); } }