static int set_current(IntPtr L) { try { GameFramework.ChannelDataPackage arg0 = (GameFramework.ChannelDataPackage)ToLua.CheckObject <GameFramework.ChannelDataPackage>(L, 2); GameFramework.ChannelData.current = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public static void Refresh() { current = new ChannelDataPackage(); string _json = Utility.LoadResourceConfigFile(ProjectDatas.NAME_CHANNEL_FILE); if (string.IsNullOrEmpty(_json)) { current = new ChannelDataPackage(); } else { current = LitJson.JsonMapper.ToObject <ChannelDataPackage>(_json); } }
static int get_wxappID(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameFramework.ChannelDataPackage obj = (GameFramework.ChannelDataPackage)o; string ret = obj.wxappID; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index wxappID on a nil value")); } }
static int set_ocAppTeamID(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameFramework.ChannelDataPackage obj = (GameFramework.ChannelDataPackage)o; string arg0 = ToLua.CheckString(L, 2); obj.ocAppTeamID = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ocAppTeamID on a nil value")); } }
static int set_channelID(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameFramework.ChannelDataPackage obj = (GameFramework.ChannelDataPackage)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.channelID = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index channelID on a nil value")); } }
static int _CreateGameFramework_ChannelDataPackage(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { GameFramework.ChannelDataPackage obj = new GameFramework.ChannelDataPackage(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: GameFramework.ChannelDataPackage.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }