static int _m_CompareTo(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MongoDB.Bson.BsonInt32 gen_to_be_invoked = (MongoDB.Bson.BsonInt32)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <MongoDB.Bson.BsonInt32>(L, 2)) { MongoDB.Bson.BsonInt32 _other = (MongoDB.Bson.BsonInt32)translator.GetObject(L, 2, typeof(MongoDB.Bson.BsonInt32)); 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.BsonInt32.CompareTo!")); }