public static int CanManualFlushRandomStore(IntPtr l) { int result; try { RandomStoreComponent randomStoreComponent = (RandomStoreComponent)LuaObject.checkSelf(l); RandomStore store; LuaObject.checkType <RandomStore>(l, 2, out store); int i = randomStoreComponent.CanManualFlushRandomStore(store); LuaObject.pushValue(l, true); LuaObject.pushValue(l, i); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }