static public int MarkStoryTerminated(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 2)
         {
             GameFramework.Story.GfxStorySystem self = (GameFramework.Story.GfxStorySystem)checkSelf(l);
             System.String a1;
             checkType(l, 2, out a1);
             self.MarkStoryTerminated(a1);
             pushValue(l, true);
             return(1);
         }
         else if (argc == 3)
         {
             GameFramework.Story.GfxStorySystem self = (GameFramework.Story.GfxStorySystem)checkSelf(l);
             System.String a1;
             checkType(l, 2, out a1);
             System.String a2;
             checkType(l, 3, out a2);
             self.MarkStoryTerminated(a1, a2);
             pushValue(l, true);
             return(1);
         }
         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 Init(IntPtr l)
 {
     try {
         GameFramework.Story.GfxStorySystem self = (GameFramework.Story.GfxStorySystem)checkSelf(l);
         self.Init();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int get_GlobalVariables(IntPtr l)
 {
     try {
         GameFramework.Story.GfxStorySystem self = (GameFramework.Story.GfxStorySystem)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.GlobalVariables);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int get_ActiveStoryCount(IntPtr l)
 {
     try {
         GameFramework.Story.GfxStorySystem self = (GameFramework.Story.GfxStorySystem)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.ActiveStoryCount);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_SceneId(IntPtr l)
 {
     try {
         GameFramework.Story.GfxStorySystem self = (GameFramework.Story.GfxStorySystem)checkSelf(l);
         int v;
         checkType(l, 2, out v);
         self.SceneId = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int PreloadBattleStories(IntPtr l)
 {
     try {
         GameFramework.Story.GfxStorySystem self = (GameFramework.Story.GfxStorySystem)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         self.PreloadBattleStories(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int RecycleAiStoryInstance(IntPtr l)
 {
     try {
         GameFramework.Story.GfxStorySystem self = (GameFramework.Story.GfxStorySystem)checkSelf(l);
         GameFramework.AiStoryInstanceInfo  a1;
         checkType(l, 2, out a1);
         self.RecycleAiStoryInstance(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int CountMessage(IntPtr l)
 {
     try {
         GameFramework.Story.GfxStorySystem self = (GameFramework.Story.GfxStorySystem)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         var ret = self.CountMessage(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int PreloadAiStory(IntPtr l)
 {
     try {
         GameFramework.Story.GfxStorySystem self = (GameFramework.Story.GfxStorySystem)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         System.String a2;
         checkType(l, 3, out a2);
         self.PreloadAiStory(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int PauseMessageHandler(IntPtr l)
 {
     try {
         GameFramework.Story.GfxStorySystem self = (GameFramework.Story.GfxStorySystem)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         System.Boolean a2;
         checkType(l, 3, out a2);
         self.PauseMessageHandler(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int SendConcurrentMessage(IntPtr l)
 {
     try {
         GameFramework.Story.GfxStorySystem self = (GameFramework.Story.GfxStorySystem)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         System.Object[] a2;
         checkParams(l, 3, out a2);
         self.SendConcurrentMessage(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int NewAiStoryInstance(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 2)
         {
             GameFramework.Story.GfxStorySystem self = (GameFramework.Story.GfxStorySystem)checkSelf(l);
             System.String a1;
             checkType(l, 2, out a1);
             var ret = self.NewAiStoryInstance(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (argc == 4)
         {
             GameFramework.Story.GfxStorySystem self = (GameFramework.Story.GfxStorySystem)checkSelf(l);
             System.String a1;
             checkType(l, 2, out a1);
             System.String a2;
             checkType(l, 3, out a2);
             System.String[] a3;
             checkParams(l, 4, out a3);
             var ret = self.NewAiStoryInstance(a1, a2, a3);
             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));
     }
 }