generated from StansAssets/Unity-Package-Sample
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: compatibility fixes & view models classes refactoring
- Loading branch information
1 parent
4bd2cc3
commit d8d3e8c
Showing
15 changed files
with
84 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 36 additions & 36 deletions
72
...els/DefaultBuildStepsViewModelProvider.cs → ...els/DefaultBuildTasksViewModelProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
using StansAssets.Build.Pipeline; | ||
|
||
namespace StansAssets.Build.Pipeline | ||
{ | ||
public class DefaultBuildStepsViewModelProvider : IBuildStepsViewModelProvider | ||
{ | ||
public IBuildStepsViewModelContainer GetBuildSteps() | ||
{ | ||
var provider = new DefaultBuildTasksProvider(); | ||
var container = new BuildStepsViewModelSortedContainer(); | ||
var callbackOrder = BuildProcessor.GetCallbackOrder(); | ||
|
||
var buildSteps = provider.GetBuildSteps(new UserEditorBuildSettings()); | ||
|
||
foreach (var preBuildStep in buildSteps.PreBuildTasks) | ||
{ | ||
var step = new BuildStepViewModel(preBuildStep.GetType().FullName, callbackOrder); | ||
container.AddPreBuildStep(step); | ||
} | ||
|
||
foreach (var sceneProcessStep in buildSteps.ScenePostProcessTasks) | ||
{ | ||
var step = new BuildStepViewModel(sceneProcessStep.GetType().FullName, callbackOrder); | ||
container.AddSceneProcessStep(step); | ||
} | ||
|
||
foreach (var postBuildStep in buildSteps.PostBuildTasks) | ||
{ | ||
var step = new BuildStepViewModel(postBuildStep.GetType().FullName, callbackOrder); | ||
container.AddSceneProcessStep(step); | ||
} | ||
|
||
return container; | ||
} | ||
} | ||
} | ||
using StansAssets.Build.Pipeline; | ||
|
||
namespace StansAssets.Build.Pipeline | ||
{ | ||
public class DefaultBuildTasksViewModelProvider : IBuildStepsViewModelProvider | ||
{ | ||
public IBuildStepsViewModelContainer GetBuildSteps() | ||
{ | ||
var provider = new DefaultBuildTasksProvider(); | ||
var container = new BuildStepsViewModelSortedContainer(); | ||
var callbackOrder = BuildProcessor.GetCallbackOrder(); | ||
|
||
var buildSteps = provider.GetBuildTasks(new UserEditorBuildSettings()); | ||
|
||
foreach (var preBuildStep in buildSteps.PreBuildTasks) | ||
{ | ||
var step = new BuildStepViewModel(preBuildStep.GetType().FullName, callbackOrder); | ||
container.AddPreBuildStep(step); | ||
} | ||
|
||
foreach (var sceneProcessStep in buildSteps.ScenePostProcessTasks) | ||
{ | ||
var step = new BuildStepViewModel(sceneProcessStep.GetType().FullName, callbackOrder); | ||
container.AddSceneProcessStep(step); | ||
} | ||
|
||
foreach (var postBuildStep in buildSteps.PostBuildTasks) | ||
{ | ||
var step = new BuildStepViewModel(postBuildStep.GetType().FullName, callbackOrder); | ||
container.AddSceneProcessStep(step); | ||
} | ||
|
||
return container; | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.