public static void RegisterReaders(ITypeReaderCollection typeReaders, IDependencyFactory factory) { var dataService = factory.GetOrStore <TT2DataService>(); typeReaders.AddTypeReader <Artifact>(new ArtifactTypeReader(dataService)); typeReaders.AddTypeReader <Pet>(new PetTypeReader(dataService)); typeReaders.AddTypeReader <Equipment>(new EquipmentTypeReader(dataService)); typeReaders.AddTypeReader <Helper>(new HelperTypeReader(dataService)); typeReaders.AddTypeReader <Skill>(new SkillTreeTypeReader(dataService)); }
public CommandProcessor(IDependencyFactory factory, ICommandService owner, IPermissionManager permissionManager, IDatabase database, ILogger logger, ITypeReaderCollection typeReaders, ISettingManager settings) { DependencyFactory = factory; Owner = owner; PermissionManager = permissionManager; Database = database; Logger = logger; Readers = typeReaders; Settings = settings; }
private void RegisterTypeReaders(ITypeReaderCollection typeReaders, IDependencyFactory factory) { GameEntityTypeReader.RegisterReaders(typeReaders, factory); }
public SettingsCommand(ITypeReaderCollection readers) : base(readers) { }
public PreferencesCommand(ITypeReaderCollection readers) : base(readers) { }
public SettingCommand(ITypeReaderCollection readers) { Readers = readers; }