public static int get_RafflePools(IntPtr l) { int result; try { DataSectionRaffle dataSectionRaffle = (DataSectionRaffle)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, dataSectionRaffle.RafflePools); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int ClearInitedData(IntPtr l) { int result; try { DataSectionRaffle dataSectionRaffle = (DataSectionRaffle)LuaObject.checkSelf(l); dataSectionRaffle.ClearInitedData(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { DataSectionRaffle o = new DataSectionRaffle(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int SerializeToClient(IntPtr l) { int result; try { DataSectionRaffle dataSectionRaffle = (DataSectionRaffle)LuaObject.checkSelf(l); object o = dataSectionRaffle.SerializeToClient(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int InitRafflePools(IntPtr l) { int result; try { DataSectionRaffle dataSectionRaffle = (DataSectionRaffle)LuaObject.checkSelf(l); List <RafflePool> rafflePools; LuaObject.checkType <List <RafflePool> >(l, 2, out rafflePools); dataSectionRaffle.InitRafflePools(rafflePools); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int RemoveRafflePool(IntPtr l) { int result; try { DataSectionRaffle dataSectionRaffle = (DataSectionRaffle)LuaObject.checkSelf(l); int poolId; LuaObject.checkType(l, 2, out poolId); dataSectionRaffle.RemoveRafflePool(poolId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetRafflePool(IntPtr l) { int result; try { DataSectionRaffle dataSectionRaffle = (DataSectionRaffle)LuaObject.checkSelf(l); int rafflePoolId; LuaObject.checkType(l, 2, out rafflePoolId); RafflePool rafflePool = dataSectionRaffle.GetRafflePool(rafflePoolId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, rafflePool); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int Drawed(IntPtr l) { int result; try { DataSectionRaffle dataSectionRaffle = (DataSectionRaffle)LuaObject.checkSelf(l); RafflePool pool; LuaObject.checkType <RafflePool>(l, 2, out pool); int darwedRaffleId; LuaObject.checkType(l, 3, out darwedRaffleId); dataSectionRaffle.Drawed(pool, darwedRaffleId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }