static int set_gameState(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.CharacterController obj = (Nova.CharacterController)o; Nova.GameState arg0 = (Nova.GameState)ToLua.CheckObject <Nova.GameState>(L, 2); obj.gameState = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index gameState on a nil value")); } }
static int get_gameState(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.CharacterController obj = (Nova.CharacterController)o; Nova.GameState ret = obj.gameState; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index gameState on a nil value")); } }