static int GetStringValues(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); Games.ConstConfig obj = (Games.ConstConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "Games.ConstConfig"); string[] o = obj.GetStringValues(); LuaScriptMgr.PushArray(L, o); return(1); }
static int GetIntValue(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); Games.ConstConfig obj = (Games.ConstConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "Games.ConstConfig"); int o = obj.GetIntValue(); LuaScriptMgr.Push(L, o); return(1); }
static int _CreateGames_ConstConfig(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { Games.ConstConfig obj = new Games.ConstConfig(); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: Games.ConstConfig.New"); } return(0); }
static int get_name(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); Games.ConstConfig obj = (Games.ConstConfig)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name name"); } else { LuaDLL.luaL_error(L, "attempt to index name on a nil value"); } } LuaScriptMgr.Push(L, obj.name); return(1); }
static int set_strValue(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); Games.ConstConfig obj = (Games.ConstConfig)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name strValue"); } else { LuaDLL.luaL_error(L, "attempt to index strValue on a nil value"); } } obj.strValue = LuaScriptMgr.GetArrayString(L, 3); return(0); }
static int set_id(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); Games.ConstConfig obj = (Games.ConstConfig)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name id"); } else { LuaDLL.luaL_error(L, "attempt to index id on a nil value"); } } obj.id = (int)LuaScriptMgr.GetNumber(L, 3); return(0); }
public static float[] GetFloats(ID id) { ConstConfig config = configSet [(int)id]; return(config.GetFloatValues()); }
public static int[] GetInts(ID id) { ConstConfig config = configSet [(int)id]; return(config.GetIntValues()); }
public static string[] GetStrings(ID id) { ConstConfig config = configSet [(int)id]; return(config.GetStringValues()); }