Buff.cs 514 B

12345678910111213141516171819202122232425
  1. using Common.Base;
  2. using MongoDB.Bson.Serialization.Attributes;
  3. namespace Model
  4. {
  5. public class Buff: AMongo
  6. {
  7. [BsonElement]
  8. private int ConfigId { get; set; }
  9. public Buff(int configId)
  10. {
  11. this.ConfigId = configId;
  12. }
  13. [BsonIgnore]
  14. public BuffConfig Config
  15. {
  16. get
  17. {
  18. return World.Instance.ConfigManager.Get<BuffConfig>(this.ConfigId);
  19. }
  20. }
  21. }
  22. }