Esempio n. 1
0
 private static bool TableNotFound(LuaRuntime runtime, ScriptState luaState, int index, string tableName)
 {
     if (LuaCore.GetType(luaState, index) != ScriptTypes.Table)
     {
         runtime.ThrowError("未能找到全局Table=>{0}", tableName);
         return(false);
     }
     return(true);
 }
Esempio n. 2
0
        public static object GetObject(ScriptState luaState, int index)
        {
            var luaType = LuaCore.GetType(luaState, index);

            return(GetObject(luaType, luaState, index));
        }