static int get_name(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FirClient.Component.VarData obj = (FirClient.Component.VarData)o; string ret = obj.name; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index name on a nil value")); } }
static int get_lastType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FirClient.Component.VarData obj = (FirClient.Component.VarData)o; FirClient.Component.VarType ret = obj.lastType; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index lastType on a nil value")); } }
static int set_sliderValue(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FirClient.Component.VarData obj = (FirClient.Component.VarData)o; UnityEngine.UI.Slider arg0 = (UnityEngine.UI.Slider)ToLua.CheckObject <UnityEngine.UI.Slider>(L, 2); obj.sliderValue = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index sliderValue on a nil value")); } }
static int set_multiProgreValue(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FirClient.Component.VarData obj = (FirClient.Component.VarData)o; FirClient.Component.CMultiProgressBar arg0 = (FirClient.Component.CMultiProgressBar)ToLua.CheckObject <FirClient.Component.CMultiProgressBar>(L, 2); obj.multiProgreValue = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index multiProgreValue on a nil value")); } }
static int set_objValue(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FirClient.Component.VarData obj = (FirClient.Component.VarData)o; UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject)); obj.objValue = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index objValue on a nil value")); } }
static int set_inputValue(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FirClient.Component.VarData obj = (FirClient.Component.VarData)o; TMPro.TMP_InputField arg0 = (TMPro.TMP_InputField)ToLua.CheckObject <TMPro.TMP_InputField>(L, 2); obj.inputValue = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index inputValue on a nil value")); } }
static int set_name(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FirClient.Component.VarData obj = (FirClient.Component.VarData)o; string arg0 = ToLua.CheckString(L, 2); obj.name = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index name on a nil value")); } }
static int set_lastType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FirClient.Component.VarData obj = (FirClient.Component.VarData)o; FirClient.Component.VarType arg0 = (FirClient.Component.VarType)ToLua.CheckObject(L, 2, typeof(FirClient.Component.VarType)); obj.lastType = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index lastType on a nil value")); } }
static int get_multiProgreValue(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FirClient.Component.VarData obj = (FirClient.Component.VarData)o; FirClient.Component.CMultiProgressBar ret = obj.multiProgreValue; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index multiProgreValue on a nil value")); } }
static int get_sliderValue(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FirClient.Component.VarData obj = (FirClient.Component.VarData)o; UnityEngine.UI.Slider ret = obj.sliderValue; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index sliderValue on a nil value")); } }
static int get_inputValue(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FirClient.Component.VarData obj = (FirClient.Component.VarData)o; TMPro.TMP_InputField ret = obj.inputValue; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index inputValue on a nil value")); } }
static int _CreateFirClient_Component_VarData(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { FirClient.Component.VarData obj = new FirClient.Component.VarData(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: FirClient.Component.VarData.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public void Set(VarData newData) { //Clear switch (type) { case VarType.GameObject: objValue = null; break; case VarType.Transform: tranValue = null; break; case VarType.Text: txtValue = null; break; case VarType.Image: imgValue = null; break; case VarType.Button: btnValue = null; break; case VarType.TMP_InputField: inputValue = null; break; case VarType.Toggle: toggleValue = null; break; case VarType.Slider: sliderValue = null; break; case VarType.CMultiProgressBar: multiProgreValue = null; break; } //Set name = newData.name; lastType = newData.type; type = newData.type; switch (type) { case VarType.GameObject: objValue = newData.objValue; break; case VarType.Transform: tranValue = newData.tranValue; break; case VarType.Text: txtValue = newData.txtValue; break; case VarType.Image: imgValue = newData.imgValue; break; case VarType.Button: btnValue = newData.btnValue; break; case VarType.TMP_InputField: inputValue = newData.inputValue; break; case VarType.Toggle: toggleValue = newData.toggleValue; break; case VarType.Slider: sliderValue = newData.sliderValue; break; case VarType.CMultiProgressBar: multiProgreValue = newData.multiProgreValue; break; } }