public void AddMember(int characterId, string name, int @class, int leave, GuildTitle title) { DateTime now = DateTime.Now; TGuildMember dbMember = new TGuildMember() { CharacterId = characterId, Name = name, Class = @class, Level = leave, Title = (int)title, JoinTime = now, LastTime = now }; this.Data.Members.Add(dbMember); var character = CharacterManager.Instance.GetCharacter(characterId); if (character != null) { character.Data.GuildId = this.Id; } else { // DBService.Instance.Entities.Database.ExecuteSqlCommand("UPDATE Characters SET GuildId=@p0 Where CharacterId=@p1",this.Id,characterId); TCharacter dbChar = DBService.Instance.Entities.Characters.SingleOrDefault(c => c.ID == characterId); dbChar.GuildId = this.Id; } timestamp = TimeUtil.timestamp; }
public void AddMember(int characterId, string name, int @class, int level, GuildTitle title) { DateTime now = DateTime.Now; TGuildMember dbmember = new TGuildMember { CharacterId = characterId, Name = name, Class = @class, Level = level, Title = (int)title, JoinTime = now, LastTime = now }; this.Data.Members.Add(dbmember); var character = CharacterManager.Instance.GetCharacter(characterId); if (character != null) { character.Data.GuildId = this.Id; } else { TCharacter dbChr = DBService.Instance.Entities.Characters.SingleOrDefault(c => c.ID == characterId); dbChr.GuildId = this.Id; } timestamp = TimeUtil.timestamp; }
// Token: 0x0600F4E3 RID: 62691 RVA: 0x0040E16C File Offset: 0x0040C36C private string SetTitleTextByEnum(GuildTitle title) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetTitleTextByEnumGuildTitle_hotfix != null) { return((string)this.m_SetTitleTextByEnumGuildTitle_hotfix.call(new object[] { this, title })); } BJLuaObjHelper.IsSkipLuaHotfix = false; StringTableId id = (StringTableId)0; switch (title) { case GuildTitle.Normal: id = StringTableId.StringTableId_Guild_TitleNormal; break; case GuildTitle.Elite: id = StringTableId.StringTableId_Guild_TitleElite; break; case GuildTitle.VP: id = StringTableId.StringTableId_Guild_TitleVP; break; case GuildTitle.President: id = StringTableId.StringTableId_Guild_TitlePresident; break; } IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; return(configDataLoader.UtilityGetStringByStringTable(id)); }
// Token: 0x0600F52E RID: 62766 RVA: 0x0040EAE4 File Offset: 0x0040CCE4 public string SetTitleTextByEnum(GuildTitle title) { return(this.m_owner.SetTitleTextByEnum(title)); }