public void ParseTest4() { var target = new CommentComponent(); Assert.Throws <IncorrectSyntaxException>(() => target.Eval("test") ); Assert.Throws <IncorrectSyntaxException>(() => target.Eval("") ); }
public static int __callBase_PostDeSerialize(IntPtr l) { int result; try { CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l); commentComponent.m_luaExportHelper.__callBase_PostDeSerialize(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { CommentComponent o = new CommentComponent(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_m_heroComments(IntPtr l) { int result; try { CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, commentComponent.m_luaExportHelper.m_heroComments); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int DeInit(IntPtr l) { int result; try { CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l); commentComponent.DeInit(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_GetName(IntPtr l) { int result; try { CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l); string s = commentComponent.m_luaExportHelper.__callBase_GetName(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, s); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetHeroComment(IntPtr l) { int result; try { int num = LuaDLL.lua_gettop(l); if (num == 2) { CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l); int heroId; LuaObject.checkType(l, 2, out heroId); HeroComment heroComment = commentComponent.GetHeroComment(heroId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, heroComment); result = 2; } else if (num == 4) { CommentComponent commentComponent2 = (CommentComponent)LuaObject.checkSelf(l); int heroId2; LuaObject.checkType(l, 2, out heroId2); HeroComment heroComment2; LuaObject.checkType <HeroComment>(l, 3, out heroComment2); PlayerHeroCommentEntry playerCommentEntry; LuaObject.checkType <PlayerHeroCommentEntry>(l, 4, out playerCommentEntry); int heroComment3 = commentComponent2.GetHeroComment(heroId2, heroComment2, playerCommentEntry); LuaObject.pushValue(l, true); LuaObject.pushValue(l, heroComment3); result = 2; } else { LuaObject.pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function GetHeroComment to call"); result = 2; } } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_Tick(IntPtr l) { int result; try { CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l); uint deltaMillisecond; LuaObject.checkType(l, 2, out deltaMillisecond); commentComponent.m_luaExportHelper.__callBase_Tick(deltaMillisecond); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_m_heroComments(IntPtr l) { int result; try { CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l); Dictionary <int, HeroComment> heroComments; LuaObject.checkType <Dictionary <int, HeroComment> >(l, 2, out heroComments); commentComponent.m_luaExportHelper.m_heroComments = heroComments; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_IsNeedTruncateHeroComment(IntPtr l) { int result; try { CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l); string content; LuaObject.checkType(l, 2, out content); bool b = commentComponent.m_luaExportHelper.__callBase_IsNeedTruncateHeroComment(content); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetHeroCommentEntries(IntPtr l) { int result; try { CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l); int heroId; LuaObject.checkType(l, 2, out heroId); List <HeroCommentEntry> heroCommentEntries = commentComponent.GetHeroCommentEntries(heroId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, heroCommentEntries); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_FindPlayerHeroCommentEntry(IntPtr l) { int result; try { CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l); int heroId; LuaObject.checkType(l, 2, out heroId); PlayerHeroCommentEntry o = commentComponent.m_luaExportHelper.__callBase_FindPlayerHeroCommentEntry(heroId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetLastUpdateTime(IntPtr l) { int result; try { CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l); int heroId; LuaObject.checkType(l, 2, out heroId); long lastUpdateTime = commentComponent.GetLastUpdateTime(heroId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, lastUpdateTime); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int InitPlayerHeroCommentEntry(IntPtr l) { int result; try { CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l); HeroComment cacheHeroComment; LuaObject.checkType <HeroComment>(l, 2, out cacheHeroComment); PlayerHeroCommentEntry playerCommentEntry; LuaObject.checkType <PlayerHeroCommentEntry>(l, 3, out playerCommentEntry); commentComponent.m_luaExportHelper.InitPlayerHeroCommentEntry(cacheHeroComment, playerCommentEntry); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_CanPraiseHeroCommentEntry(IntPtr l) { int result; try { CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l); int heroId; LuaObject.checkType(l, 2, out heroId); ulong entryInstanceId; LuaObject.checkType(l, 3, out entryInstanceId); int i = commentComponent.m_luaExportHelper.__callBase_CanPraiseHeroCommentEntry(heroId, entryInstanceId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, i); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int AddHeroComment(IntPtr l) { int result; try { CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l); int heroId; LuaObject.checkType(l, 2, out heroId); HeroComment cacheHeroComment; LuaObject.checkType <HeroComment>(l, 3, out cacheHeroComment); HeroComment heroComment; LuaObject.checkType <HeroComment>(l, 4, out heroComment); commentComponent.m_luaExportHelper.AddHeroComment(heroId, cacheHeroComment, heroComment); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int PraiseHeroCommentEntry(IntPtr l) { int result; try { CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l); int heroId; LuaObject.checkType(l, 2, out heroId); ulong entryInstanceId; LuaObject.checkType(l, 3, out entryInstanceId); long lastUpdateTime; LuaObject.checkType(l, 4, out lastUpdateTime); int i = commentComponent.PraiseHeroCommentEntry(heroId, entryInstanceId, lastUpdateTime); LuaObject.pushValue(l, true); LuaObject.pushValue(l, i); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int CommentHero(IntPtr l) { int result; try { CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l); int heroId; LuaObject.checkType(l, 2, out heroId); HeroCommentEntry commentEntry; LuaObject.checkType <HeroCommentEntry>(l, 3, out commentEntry); long lastUpdateTime; LuaObject.checkType(l, 4, out lastUpdateTime); int i = commentComponent.CommentHero(heroId, commentEntry, lastUpdateTime); LuaObject.pushValue(l, true); LuaObject.pushValue(l, i); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public void parseTest6() { CommentComponent target = new CommentComponent(); target.parse(""); }
public void parseTest4() { CommentComponent target = new CommentComponent(); target.parse("[test]"); }
public void parseTest2() { CommentComponent target = new CommentComponent(); Assert.AreEqual(Value.Empty, target.parse("[\"line1 \n line2\"]")); }
public void parseTest3() { CommentComponent target = new CommentComponent(); target.parse("#[\"test\"]"); }
public void ParseTest2() { var target = new CommentComponent(); Assert.Equal(Value.Empty, target.Eval("[\"line1 \n line2\"]")); }