public static int constructor(IntPtr l) { int result; try { int num = LuaDLL.lua_gettop(l); if (num == 1) { HeroCommentEntry o = new HeroCommentEntry(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } else if (num == 2) { HeroCommentEntry other; LuaObject.checkType <HeroCommentEntry>(l, 2, out other); HeroCommentEntry o = new HeroCommentEntry(other); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } else { result = LuaObject.error(l, "New object failed."); } } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x06006ECE RID: 28366 RVA: 0x001F0790 File Offset: 0x001EE990 public int CommentHero(int heroId, HeroCommentEntry commentEntry, long lastUpdateTime) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CommentHeroInt32HeroCommentEntryInt64_hotfix != null) { return(Convert.ToInt32(this.m_CommentHeroInt32HeroCommentEntryInt64_hotfix.call(new object[] { this, heroId, commentEntry, lastUpdateTime }))); } BJLuaObjHelper.IsSkipLuaHotfix = false; int num = base.CanCommentHero(heroId); if (num != 0) { return(num); } HeroComment heroComment = this.FindHeroComment(heroId); if (heroComment == null) { heroComment = new HeroComment(); this.AddHeroComment(heroId, null, heroComment); } heroComment.LastUpdateTime = lastUpdateTime; commentEntry.Content = this.m_configDataLoader.UtilityGetSensitiveWords().ReplaceSensitiveWord(commentEntry.Content, '*'); heroComment.CommentEntries.Add(commentEntry); return(0); }
// Token: 0x0601031D RID: 66333 RVA: 0x0043BCD8 File Offset: 0x00439ED8 private void __callDele_EventOnNameClick(HeroCommentEntry obj) { Action <HeroCommentEntry> eventOnNameClick = this.EventOnNameClick; if (eventOnNameClick != null) { eventOnNameClick(obj); } }
public static int get_InstanceId(IntPtr l) { int result; try { HeroCommentEntry heroCommentEntry = (HeroCommentEntry)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, heroCommentEntry.InstanceId); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int PBHeroCommentEntryToHeroCommentEntry_s(IntPtr l) { int result; try { ProHeroCommentEntry pbEntry; LuaObject.checkType <ProHeroCommentEntry>(l, 1, out pbEntry); HeroCommentEntry o = HeroCommentEntry.PBHeroCommentEntryToHeroCommentEntry(pbEntry); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_CommentTime(IntPtr l) { int result; try { HeroCommentEntry heroCommentEntry = (HeroCommentEntry)LuaObject.checkSelf(l); long commentTime; LuaObject.checkType(l, 2, out commentTime); heroCommentEntry.CommentTime = commentTime; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_PraiseNums(IntPtr l) { int result; try { HeroCommentEntry heroCommentEntry = (HeroCommentEntry)LuaObject.checkSelf(l); int praiseNums; LuaObject.checkType(l, 2, out praiseNums); heroCommentEntry.PraiseNums = praiseNums; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_InstanceId(IntPtr l) { int result; try { HeroCommentEntry heroCommentEntry = (HeroCommentEntry)LuaObject.checkSelf(l); ulong instanceId; LuaObject.checkType(l, 2, out instanceId); heroCommentEntry.InstanceId = instanceId; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x060102FF RID: 66303 RVA: 0x0043B4C8 File Offset: 0x004396C8 public void InitCommentItem(HeroCommentEntry comment, bool isShowPraisedIcon) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitCommentItemHeroCommentEntryBoolean_hotfix != null) { this.m_InitCommentItemHeroCommentEntryBoolean_hotfix.call(new object[] { this, comment, isShowPraisedIcon }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.Comment = comment; this.CommenterId = comment.CommenterUserId; this.CommentInstanceId = comment.InstanceId; this.m_playerLvText.text = "LV." + comment.CommenterLevel; this.m_playerNameText.text = comment.CommenterName; this.m_playerCommentText.text = comment.Content; this.m_playerPraisedNumText.text = comment.PraiseNums.ToString(); this.m_playerPraisedIcon.SetActive(isShowPraisedIcon); }
// Token: 0x06010334 RID: 66356 RVA: 0x0043C0C8 File Offset: 0x0043A2C8 public void __clearDele_EventOnNameClick(HeroCommentEntry obj) { this.m_owner.__clearDele_EventOnNameClick(obj); }
// Token: 0x0601031E RID: 66334 RVA: 0x0043BCFC File Offset: 0x00439EFC private void __clearDele_EventOnNameClick(HeroCommentEntry obj) { this.EventOnNameClick = null; }