static int set_OnLoginSuc(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); SDKInterface obj = (SDKInterface)o; SDKInterface.LoginSucHandler arg0 = (SDKInterface.LoginSucHandler)ToLua.CheckDelegate <SDKInterface.LoginSucHandler>(L, 2); obj.OnLoginSuc = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnLoginSuc on a nil value")); } }
static int get_OnLoginSuc(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); SDKInterface obj = (SDKInterface)o; SDKInterface.LoginSucHandler ret = obj.OnLoginSuc; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnLoginSuc on a nil value")); } }
private static int get_OnLoginSuc(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); SDKInterface sDKInterface = (SDKInterface)obj; SDKInterface.LoginSucHandler onLoginSuc = sDKInterface.OnLoginSuc; ToLua.Push(L, onLoginSuc); result = 1; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index OnLoginSuc on a nil value"); } return(result); }