public static int SerializeToClient(IntPtr l) { int result; try { DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l); object o = dataSectionBattle.SerializeToClient(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }