/// <summary> /// /// </summary> public TaxCollectorEntity(GuildInstance guild, TaxCollectorDAO record) : base(EntityTypeEnum.TYPE_TAX_COLLECTOR, record.Id) { DatabaseRecord = record; Guild = guild; MapId = DatabaseRecord.MapId; CellId = DatabaseRecord.CellId; Defenders = new List<GuildMember>(); FarmedItems = new Dictionary<int, int>(); Statistics = new GenericStats(); Statistics.Merge(guild.Statistics.BaseStatistics); SpellBook = SpellBookFactory.Instance.Create(this); Storage = new TaxCollectorInventory(this); }
/// <summary> /// /// </summary> /// <param name="guild"></param> /// <param name="character"></param> public GuildMember(GuildInstance guild, CharacterDAO character) { m_character = character; TaxCollectorJoinedId = -1; Guild = guild; }