static public int GetStories(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(string)))
         {
             StorySystem.StoryConfigManager self = (StorySystem.StoryConfigManager)checkSelf(l);
             System.String a1;
             checkType(l, 2, out a1);
             var ret = self.GetStories(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(int)))
         {
             StorySystem.StoryConfigManager self = (StorySystem.StoryConfigManager)checkSelf(l);
             System.Int32 a1;
             checkType(l, 2, out a1);
             var ret = self.GetStories(a1);
             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));
     }
 }
 static public int Clear(IntPtr l)
 {
     try {
         StorySystem.StoryConfigManager self = (StorySystem.StoryConfigManager)checkSelf(l);
         self.Clear();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int ExistStory(IntPtr l)
 {
     try {
         StorySystem.StoryConfigManager self = (StorySystem.StoryConfigManager)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         System.Int32 a2;
         checkType(l, 3, out a2);
         var ret = self.ExistStory(a1, a2);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int LoadStoryCode(IntPtr l)
 {
     try {
         StorySystem.StoryConfigManager self = (StorySystem.StoryConfigManager)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         System.Int32 a2;
         checkType(l, 3, out a2);
         System.String a3;
         checkType(l, 4, out a3);
         self.LoadStoryCode(a1, a2, a3);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }