static int set_innerRandom(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); RandomUtil obj = (RandomUtil)o; JRandom arg0 = (JRandom)ToLua.CheckObject(L, 2, typeof(JRandom)); obj.innerRandom = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index innerRandom on a nil value" : e.Message)); } }
static int get_otherRandom(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); RandomUtil obj = (RandomUtil)o; JRandom ret = obj.otherRandom; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index otherRandom on a nil value" : e.Message)); } }