示例#1
0
        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));
        }
示例#2
0
 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;
 }
示例#3
0
 private void RegisterTypeReaders(ITypeReaderCollection typeReaders, IDependencyFactory factory)
 {
     GameEntityTypeReader.RegisterReaders(typeReaders, factory);
 }
示例#4
0
 public SettingsCommand(ITypeReaderCollection readers)
     : base(readers)
 {
 }
示例#5
0
 public PreferencesCommand(ITypeReaderCollection readers)
     : base(readers)
 {
 }
示例#6
0
 public SettingCommand(ITypeReaderCollection readers)
 {
     Readers = readers;
 }