示例#1
0
        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) : "";
        }
示例#3
0
 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;
 }
示例#4
0
        //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;
        }
示例#5
0
        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;
        }
示例#7
0
 public MATERIAL(Red4ParserService fileservice, ModTools modtools)
 {
     _wolvenkitFileService = fileservice;
     _modTools             = modtools;
 }
示例#8
0
 public RIG(Red4ParserService modTools)
 {
     _modTools = modTools;
 }
示例#9
0
 public ANIMATION(Red4ParserService fileservice)
 {
     _wolvenkitFileService = fileservice;
 }
示例#10
0
 public TARGET(Red4ParserService fileservice)
 {
     _wolvenkitFileService = fileservice;
 }
示例#11
0
 public RIG(Red4ParserService wolvenkitFileService)
 {
     _wolvenkitFileService = wolvenkitFileService;
 }
示例#12
0
 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>();
 }