static public int GetBossCount(IntPtr l) { try { GameFramework.PluginFramework self = (GameFramework.PluginFramework)checkSelf(l); var ret = self.GetBossCount(); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }