Skip to content

Commit 838809d

Browse files
committed
Move enum into module
1 parent 5f499fd commit 838809d

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

UnitySetup/UnitySetup.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ RequiredModules = @(
6161
# RequiredAssemblies = @()
6262

6363
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
64-
ScriptsToProcess = @("UnitySetupInit.ps1")
64+
ScriptsToProcess = @()
6565

6666
# Type files (.ps1xml) to be loaded when importing this module
6767
# TypesToProcess = @()

UnitySetup/UnitySetup.psm1

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22
# Licensed under the MIT License.
33
Import-Module powershell-yaml -Force -ErrorAction Stop
44

5+
[Flags()]
6+
enum UnitySetupComponentType
7+
{
8+
Setup = (1 -shl 0)
9+
Documentation = (1 -shl 1)
10+
StandardAssets = (1 -shl 2)
11+
ExampleProject = (1 -shl 3)
12+
Metro = (1 -shl 4)
13+
UWP_IL2CPP = (1 -shl 5)
14+
Android = (1 -shl 6)
15+
iOS = (1 -shl 7)
16+
AppleTV = (1 -shl 8)
17+
Facebook = (1 -shl 9)
18+
Linux = (1 -shl 10)
19+
Mac = (1 -shl 11)
20+
Vuforia = (1 -shl 12)
21+
WebGL = (1 -shl 13)
22+
Windows_IL2CPP = (1 -shl 14)
23+
All = (-1)
24+
}
25+
526
class UnitySetupInstaller
627
{
728
[UnitySetupComponentType] $ComponentType

UnitySetup/UnitySetupInit.ps1

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)