static public int GetBattleNpcCount(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 1)
         {
             GameFramework.PluginFramework self = (GameFramework.PluginFramework)checkSelf(l);
             var ret = self.GetBattleNpcCount();
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (argc == 2)
         {
             GameFramework.PluginFramework self = (GameFramework.PluginFramework)checkSelf(l);
             System.Int32 a1;
             checkType(l, 2, out a1);
             var ret = self.GetBattleNpcCount(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(int), typeof(GameFramework.CharacterRelation)))
         {
             GameFramework.PluginFramework self = (GameFramework.PluginFramework)checkSelf(l);
             System.Int32 a1;
             checkType(l, 2, out a1);
             GameFramework.CharacterRelation a2;
             checkEnum(l, 3, out a2);
             var ret = self.GetBattleNpcCount(a1, a2);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(GameFramework.EntityInfo), typeof(GameFramework.CharacterRelation)))
         {
             GameFramework.PluginFramework self = (GameFramework.PluginFramework)checkSelf(l);
             GameFramework.EntityInfo      a1;
             checkType(l, 2, out a1);
             GameFramework.CharacterRelation a2;
             checkEnum(l, 3, out a2);
             var ret = self.GetBattleNpcCount(a1, a2);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }