public GuildMemberInstance(Character character, GuildInstance guild, ContextGuildMember record) { this.Record = record; this.CharacterRecord = character.Record; this.Guild = guild; this.Character = character; this.Character.OnGuildJoined(Guild, this); }
public void Join(Character character, bool isBoss) { var memberRecord = ContextGuildMember.New(character, isBoss); Record.Members.Add(memberRecord); GuildMemberInstance member = new GuildMemberInstance(character, this, memberRecord); Members.Add(member); Record.UpdateElement(); }
public GuildMemberInstance(GuildInstance guild, ContextGuildMember record) { this.CharacterRecord = CharacterRecord.GetRecord(record.CharacterId); this.Record = record; this.Guild = guild; }