/// <summary> /// New, and empty /// </summary> /// <param name="db"></param> public GlobalDefinitions(IModernDatabase db) { this._db = db; this._skillDefinitions = new Dictionary <Guid, Skill>(); this._baseCharacterClassDefinitions = new Dictionary <Guid, BaseCharacterClass>(); this._featDefinitions = new Dictionary <Guid, Feat>(); this._classFeatureDefinitions = new Dictionary <Guid, ClassFeature>(); }
public ModernD20Library(ICoreNotifications coreNotifications, IModernDatabase database) : base(database) { this._database = database; this.CoreNotifications = coreNotifications; this.GlobalState = new GlobalState(this); this.FightRoller = new DefaultRoller(new DefaultRandomizer()); // TODO: expand rollers tree -> or move to global state this.GlobalDefinitions = new GlobalDefinitions(this._database); this.GlobalDefinitions.RegisterLibrary(this.GetType().Assembly); this.SavingThrowsLogic = new SavingThrowsLogic(this); this.ActionPointsLogic = new ActionPointsLogic(this); this.RestorationLogic = new RestorationLogic(this); // DamageLogic = new DamageLogic(this); }