static int _g_get_Code(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MongoDB.Bson.BsonJavaScript gen_to_be_invoked = (MongoDB.Bson.BsonJavaScript)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.Code); } 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) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _code = LuaAPI.lua_tostring(L, 2); MongoDB.Bson.BsonJavaScript gen_ret = new MongoDB.Bson.BsonJavaScript(_code); 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.BsonJavaScript 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.BsonJavaScript gen_ret = MongoDB.Bson.BsonJavaScript.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.BsonJavaScript>(L, 1) && translator.Assignable <MongoDB.Bson.BsonJavaScript>(L, 2)) { MongoDB.Bson.BsonJavaScript leftside = (MongoDB.Bson.BsonJavaScript)translator.GetObject(L, 1, typeof(MongoDB.Bson.BsonJavaScript)); MongoDB.Bson.BsonJavaScript rightside = (MongoDB.Bson.BsonJavaScript)translator.GetObject(L, 2, typeof(MongoDB.Bson.BsonJavaScript)); 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.BsonJavaScript!")); }
static int _m_GetHashCode(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MongoDB.Bson.BsonJavaScript gen_to_be_invoked = (MongoDB.Bson.BsonJavaScript)translator.FastGetCSObj(L, 1); { int gen_ret = gen_to_be_invoked.GetHashCode( ); LuaAPI.xlua_pushinteger(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.BsonJavaScript gen_to_be_invoked = (MongoDB.Bson.BsonJavaScript)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <MongoDB.Bson.BsonJavaScript>(L, 2)) { MongoDB.Bson.BsonJavaScript _rhs = (MongoDB.Bson.BsonJavaScript)translator.GetObject(L, 2, typeof(MongoDB.Bson.BsonJavaScript)); 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.BsonJavaScript.Equals!")); }
static int _m_CompareTo(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MongoDB.Bson.BsonJavaScript gen_to_be_invoked = (MongoDB.Bson.BsonJavaScript)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <MongoDB.Bson.BsonJavaScript>(L, 2)) { MongoDB.Bson.BsonJavaScript _other = (MongoDB.Bson.BsonJavaScript)translator.GetObject(L, 2, typeof(MongoDB.Bson.BsonJavaScript)); 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.BsonJavaScript.CompareTo!")); }