static int GetAllCards(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); DuelDataManager obj = (DuelDataManager)ToLua.CheckObject <DuelDataManager>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); System.Collections.Generic.List <DuelCard> o = obj.GetAllCards(arg0); ToLua.PushSealed(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_handcard(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DuelDataManager obj = (DuelDataManager)o; System.Collections.Generic.List <DuelCard>[] ret = obj.handcard; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index handcard on a nil value")); } }
static int get_duelcase(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DuelDataManager obj = (DuelDataManager)o; System.Collections.Generic.List <DuelCase> ret = obj.duelcase; ToLua.PushSealed(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index duelcase on a nil value")); } }
static int get_cardData(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DuelDataManager obj = (DuelDataManager)o; CardDataManager ret = obj.cardData; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index cardData on a nil value")); } }
static int get_eventText(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DuelDataManager obj = (DuelDataManager)o; string ret = obj.eventText; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index eventText on a nil value")); } }
static int set_effectChain(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DuelDataManager obj = (DuelDataManager)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.effectChain = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index effectChain on a nil value")); } }
static int set_setmonster(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DuelDataManager obj = (DuelDataManager)o; bool[] arg0 = ToLua.CheckBoolArray(L, 2); obj.setmonster = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index setmonster on a nil value")); } }
static int set_special(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DuelDataManager obj = (DuelDataManager)o; DuelCard[][] arg0 = ToLua.CheckObjectArray <DuelCard[]>(L, 2); obj.special = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index special on a nil value")); } }