public ConsoleFunctions( ILoggerService loggerService, IHashService hashService, IProgressService <double> progress, Red4ParserService wolvenkitFileService, ModTools modTools, IOptions <CommonImportArgs> commonImportArgs, IOptions <XbmImportArgs> xbmImportArgs, IOptions <MeshImportArgs> meshImportArgs, IOptions <XbmExportArgs> xbmExportArgs, IOptions <MeshExportArgs> meshExportArgs, IOptions <MorphTargetExportArgs> morphTargetExportArgs, IOptions <MlmaskExportArgs> mlmaskExportArgs, IOptions <WemExportArgs> wemExportArgs ) { _loggerService = loggerService; _modTools = modTools; _progressService = progress; _hashService = hashService; _commonImportArgs = commonImportArgs; _xbmImportArgs = xbmImportArgs; _meshImportArgs = meshImportArgs; _wolvenkitFileService = wolvenkitFileService; _xbmExportArgs = xbmExportArgs; _meshExportArgs = meshExportArgs; _morphTargetExportArgs = morphTargetExportArgs; _mlmaskExportArgs = mlmaskExportArgs; _wemExportArgs = wemExportArgs; }
public RedDocumentViewModel(string path) : base(path) { _loggerService = Locator.Current.GetService <ILoggerService>(); _parser = Locator.Current.GetService <Red4ParserService>(); _hashService = Locator.Current.GetService <IHashService>(); var projectManager = Locator.Current.GetService <IProjectManager>(); if (projectManager.ActiveProject != null) { RelativePath = Path.GetRelativePath(projectManager.ActiveProject.ModDirectory, path); } Extension = Path.GetExtension(path) != "" ? Path.GetExtension(path).Substring(1) : ""; }
public ModTools( ILoggerService loggerService, IProgressService <double> progressService, IHashService hashService, Red4ParserService wolvenkitFileService, MeshTools meshTools, IArchiveManager archiveManager ) { _loggerService = loggerService; _progressService = progressService; _hashService = hashService; _wolvenkitFileService = wolvenkitFileService; _meshTools = meshTools; _archiveManager = archiveManager; }
//private readonly MaterialTools _materialTools; public ModTools( ILoggerService loggerService, IProgressService <double> progressService, IHashService hashService, Red4ParserService wolvenkitFileService, MeshTools meshTools //MaterialTools materialTools ) { _loggerService = loggerService; _progressService = progressService; _hashService = hashService; _wolvenkitFileService = wolvenkitFileService; _meshTools = meshTools; //_materialTools = materialTools; }
private DocumentViewModel() { State = DockState.Document; _gameControllerFactory = ServiceLocator.Default.ResolveType <IGameControllerFactory>(); _projectManager = ServiceLocator.Default.ResolveType <IProjectManager>(); _modTools = ServiceLocator.Default.ResolveType <ModTools>(); _wolvenkitFileService = ServiceLocator.Default.ResolveType <Red4ParserService>(); IsDirty = false; OpenEditorCommand = new RelayCommand(ExecuteOpenEditor); OpenBufferCommand = new RelayCommand(ExecuteOpenBuffer); OpenImportCommand = new DelegateCommand <ICR2WImport>(ExecuteOpenImport); OpenImportCommand = new RelayCommand(ExecuteViewImports, CanViewImports); }
public ConsoleFunctions( ILoggerService loggerService, IHashService hashService, IProgressService <double> progress, Red4ParserService wolvenkitFileService, IModTools modTools, IArchiveManager archiveManager, IOptions <CommonImportArgs> commonImportArgs, IOptions <XbmImportArgs> xbmImportArgs, IOptions <GltfImportArgs> gltfImportArgs, IOptions <XbmExportArgs> xbmExportArgs, IOptions <MeshExportArgs> meshExportArgs, IOptions <MorphTargetExportArgs> morphTargetExportArgs, IOptions <MlmaskExportArgs> mlmaskExportArgs, IOptions <WemExportArgs> wemExportArgs, IOptions <AnimationExportArgs> animationExportArgs ) { _loggerService = loggerService; _modTools = modTools; _progressService = progress; _hashService = hashService; _archiveManager = archiveManager; _commonImportArgs = commonImportArgs; _xbmImportArgs = xbmImportArgs; _gltfImportArgs = gltfImportArgs; _wolvenkitFileService = wolvenkitFileService; _xbmExportArgs = xbmExportArgs; _meshExportArgs = meshExportArgs; _morphTargetExportArgs = morphTargetExportArgs; _mlmaskExportArgs = mlmaskExportArgs; _wemExportArgs = wemExportArgs; _animationExportArgs = animationExportArgs; }
public MATERIAL(Red4ParserService fileservice, ModTools modtools) { _wolvenkitFileService = fileservice; _modTools = modtools; }
public RIG(Red4ParserService modTools) { _modTools = modTools; }
public ANIMATION(Red4ParserService fileservice) { _wolvenkitFileService = fileservice; }
public TARGET(Red4ParserService fileservice) { _wolvenkitFileService = fileservice; }
public RIG(Red4ParserService wolvenkitFileService) { _wolvenkitFileService = wolvenkitFileService; }
public MESH(Red4ParserService wolvenkitFileService, RIG rig) { _wolvenkitFileService = wolvenkitFileService; _rig = rig; }
public RedDocumentViewModel(string path) : base(path) { _loggerService = Locator.Current.GetService <ILoggerService>(); _parser = Locator.Current.GetService <Red4ParserService>(); _hashService = Locator.Current.GetService <IHashService>(); }