static int _g_get_Scope(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MongoDB.Bson.BsonJavaScriptWithScope gen_to_be_invoked = (MongoDB.Bson.BsonJavaScriptWithScope)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.Scope); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <MongoDB.Bson.BsonDocument>(L, 3)) { string _code = LuaAPI.lua_tostring(L, 2); MongoDB.Bson.BsonDocument _scope = (MongoDB.Bson.BsonDocument)translator.GetObject(L, 3, typeof(MongoDB.Bson.BsonDocument)); MongoDB.Bson.BsonJavaScriptWithScope gen_ret = new MongoDB.Bson.BsonJavaScriptWithScope(_code, _scope); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to MongoDB.Bson.BsonJavaScriptWithScope constructor!")); }
static int _m_Create_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { object _value = translator.GetObject(L, 1, typeof(object)); MongoDB.Bson.BsonJavaScriptWithScope gen_ret = MongoDB.Bson.BsonJavaScriptWithScope.Create(_value); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int __EqMeta(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (translator.Assignable <MongoDB.Bson.BsonJavaScriptWithScope>(L, 1) && translator.Assignable <MongoDB.Bson.BsonJavaScriptWithScope>(L, 2)) { MongoDB.Bson.BsonJavaScriptWithScope leftside = (MongoDB.Bson.BsonJavaScriptWithScope)translator.GetObject(L, 1, typeof(MongoDB.Bson.BsonJavaScriptWithScope)); MongoDB.Bson.BsonJavaScriptWithScope rightside = (MongoDB.Bson.BsonJavaScriptWithScope)translator.GetObject(L, 2, typeof(MongoDB.Bson.BsonJavaScriptWithScope)); LuaAPI.lua_pushboolean(L, leftside == rightside); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need MongoDB.Bson.BsonJavaScriptWithScope!")); }
static int _m_ToString(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MongoDB.Bson.BsonJavaScriptWithScope gen_to_be_invoked = (MongoDB.Bson.BsonJavaScriptWithScope)translator.FastGetCSObj(L, 1); { string gen_ret = gen_to_be_invoked.ToString( ); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Equals(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MongoDB.Bson.BsonJavaScriptWithScope gen_to_be_invoked = (MongoDB.Bson.BsonJavaScriptWithScope)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <MongoDB.Bson.BsonJavaScriptWithScope>(L, 2)) { MongoDB.Bson.BsonJavaScriptWithScope _rhs = (MongoDB.Bson.BsonJavaScriptWithScope)translator.GetObject(L, 2, typeof(MongoDB.Bson.BsonJavaScriptWithScope)); bool gen_ret = gen_to_be_invoked.Equals(_rhs); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <object>(L, 2)) { object _obj = translator.GetObject(L, 2, typeof(object)); bool gen_ret = gen_to_be_invoked.Equals(_obj); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to MongoDB.Bson.BsonJavaScriptWithScope.Equals!")); }
static int _m_CompareTo(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MongoDB.Bson.BsonJavaScriptWithScope gen_to_be_invoked = (MongoDB.Bson.BsonJavaScriptWithScope)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <MongoDB.Bson.BsonJavaScriptWithScope>(L, 2)) { MongoDB.Bson.BsonJavaScriptWithScope _other = (MongoDB.Bson.BsonJavaScriptWithScope)translator.GetObject(L, 2, typeof(MongoDB.Bson.BsonJavaScriptWithScope)); int gen_ret = gen_to_be_invoked.CompareTo(_other); LuaAPI.xlua_pushinteger(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <MongoDB.Bson.BsonValue>(L, 2)) { MongoDB.Bson.BsonValue _other = (MongoDB.Bson.BsonValue)translator.GetObject(L, 2, typeof(MongoDB.Bson.BsonValue)); int gen_ret = gen_to_be_invoked.CompareTo(_other); LuaAPI.xlua_pushinteger(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to MongoDB.Bson.BsonJavaScriptWithScope.CompareTo!")); }