コード例 #1
0
 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);
 }
コード例 #2
0
        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();
        }
コード例 #3
0
 public GuildMemberInstance(GuildInstance guild, ContextGuildMember record)
 {
     this.CharacterRecord = CharacterRecord.GetRecord(record.CharacterId);
     this.Record          = record;
     this.Guild           = guild;
 }