-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
namespace Beamable.Editor.BeamCli.Commands | ||
{ | ||
using Beamable.Common; | ||
using Beamable.Common.BeamCli; | ||
|
||
[System.SerializableAttribute()] | ||
public class BeamDownloadAllNugetDepsToUnityCommandOutput | ||
{ | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
namespace Beamable.Editor.BeamCli.Commands | ||
{ | ||
using Beamable.Common; | ||
using Beamable.Common.BeamCli; | ||
|
||
[System.SerializableAttribute()] | ||
public class BeamDownloadNugetDepToUnityCommandOutput | ||
{ | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
namespace Beamable.Editor.BeamCli.Commands | ||
{ | ||
using Beamable.Common; | ||
using Beamable.Common.BeamCli; | ||
|
||
[System.SerializableAttribute()] | ||
public class BeamReleaseSharedUnityCodeCommandOutput | ||
{ | ||
public string message; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
namespace Beamable.Editor.BeamCli.Commands | ||
{ | ||
using Beamable.Common; | ||
using Beamable.Common.BeamCli; | ||
|
||
public class UnityDownloadAllNugetPackagesArgs : Beamable.Common.BeamCli.IBeamCommandArgs | ||
{ | ||
/// <summary>the path to the Unity project</summary> | ||
public string unityProjectPath; | ||
/// <summary>Serializes the arguments for command line usage.</summary> | ||
public virtual string Serialize() | ||
{ | ||
// Create a list of arguments for the command | ||
System.Collections.Generic.List<string> genBeamCommandArgs = new System.Collections.Generic.List<string>(); | ||
// Add the unityProjectPath value to the list of args. | ||
genBeamCommandArgs.Add(this.unityProjectPath.ToString()); | ||
string genBeamCommandStr = ""; | ||
// Join all the args with spaces | ||
genBeamCommandStr = string.Join(" ", genBeamCommandArgs); | ||
return genBeamCommandStr; | ||
} | ||
} | ||
public partial class BeamCommands | ||
{ | ||
public virtual UnityDownloadAllNugetPackagesWrapper UnityDownloadAllNugetPackages(UnityDownloadAllNugetPackagesArgs downloadAllNugetPackagesArgs) | ||
{ | ||
// Create a list of arguments for the command | ||
System.Collections.Generic.List<string> genBeamCommandArgs = new System.Collections.Generic.List<string>(); | ||
genBeamCommandArgs.Add("beam"); | ||
genBeamCommandArgs.Add(defaultBeamArgs.Serialize()); | ||
genBeamCommandArgs.Add("unity"); | ||
genBeamCommandArgs.Add("download-all-nuget-packages"); | ||
genBeamCommandArgs.Add(downloadAllNugetPackagesArgs.Serialize()); | ||
// Create an instance of an IBeamCommand | ||
Beamable.Common.BeamCli.IBeamCommand command = this._factory.Create(); | ||
// Join all the command paths and args into one string | ||
string genBeamCommandStr = string.Join(" ", genBeamCommandArgs); | ||
// Configure the command with the command string | ||
command.SetCommand(genBeamCommandStr); | ||
UnityDownloadAllNugetPackagesWrapper genBeamCommandWrapper = new UnityDownloadAllNugetPackagesWrapper(); | ||
genBeamCommandWrapper.Command = command; | ||
// Return the command! | ||
return genBeamCommandWrapper; | ||
} | ||
} | ||
public class UnityDownloadAllNugetPackagesWrapper : Beamable.Common.BeamCli.BeamCommandWrapper | ||
{ | ||
public virtual UnityDownloadAllNugetPackagesWrapper OnStreamDownloadAllNugetDepsToUnityCommandOutput(System.Action<ReportDataPoint<BeamDownloadAllNugetDepsToUnityCommandOutput>> cb) | ||
{ | ||
this.Command.On("stream", cb); | ||
return this; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
|
||
namespace Beamable.Editor.BeamCli.Commands | ||
{ | ||
using Beamable.Common; | ||
using Beamable.Common.BeamCli; | ||
|
||
public class UnityDownloadNugetPackageArgs : Beamable.Common.BeamCli.IBeamCommandArgs | ||
{ | ||
/// <summary>the nuget id of the package dep</summary> | ||
public string packageId; | ||
/// <summary>the version of the package</summary> | ||
public string packageVersion; | ||
/// <summary>the file path inside the package to copy</summary> | ||
public string src; | ||
/// <summary>the target location to place the copied files</summary> | ||
public string dst; | ||
/// <summary>Serializes the arguments for command line usage.</summary> | ||
public virtual string Serialize() | ||
{ | ||
// Create a list of arguments for the command | ||
System.Collections.Generic.List<string> genBeamCommandArgs = new System.Collections.Generic.List<string>(); | ||
// Add the packageId value to the list of args. | ||
genBeamCommandArgs.Add(this.packageId.ToString()); | ||
// Add the packageVersion value to the list of args. | ||
genBeamCommandArgs.Add(this.packageVersion.ToString()); | ||
// Add the src value to the list of args. | ||
genBeamCommandArgs.Add(this.src.ToString()); | ||
// Add the dst value to the list of args. | ||
genBeamCommandArgs.Add(this.dst.ToString()); | ||
string genBeamCommandStr = ""; | ||
// Join all the args with spaces | ||
genBeamCommandStr = string.Join(" ", genBeamCommandArgs); | ||
return genBeamCommandStr; | ||
} | ||
} | ||
public partial class BeamCommands | ||
{ | ||
public virtual UnityDownloadNugetPackageWrapper UnityDownloadNugetPackage(UnityDownloadNugetPackageArgs downloadNugetPackageArgs) | ||
{ | ||
// Create a list of arguments for the command | ||
System.Collections.Generic.List<string> genBeamCommandArgs = new System.Collections.Generic.List<string>(); | ||
genBeamCommandArgs.Add("beam"); | ||
genBeamCommandArgs.Add(defaultBeamArgs.Serialize()); | ||
genBeamCommandArgs.Add("unity"); | ||
genBeamCommandArgs.Add("download-nuget-package"); | ||
genBeamCommandArgs.Add(downloadNugetPackageArgs.Serialize()); | ||
// Create an instance of an IBeamCommand | ||
Beamable.Common.BeamCli.IBeamCommand command = this._factory.Create(); | ||
// Join all the command paths and args into one string | ||
string genBeamCommandStr = string.Join(" ", genBeamCommandArgs); | ||
// Configure the command with the command string | ||
command.SetCommand(genBeamCommandStr); | ||
UnityDownloadNugetPackageWrapper genBeamCommandWrapper = new UnityDownloadNugetPackageWrapper(); | ||
genBeamCommandWrapper.Command = command; | ||
// Return the command! | ||
return genBeamCommandWrapper; | ||
} | ||
} | ||
public class UnityDownloadNugetPackageWrapper : Beamable.Common.BeamCli.BeamCommandWrapper | ||
{ | ||
public virtual UnityDownloadNugetPackageWrapper OnStreamDownloadNugetDepToUnityCommandOutput(System.Action<ReportDataPoint<BeamDownloadNugetDepToUnityCommandOutput>> cb) | ||
{ | ||
this.Command.On("stream", cb); | ||
return this; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
|
||
namespace Beamable.Editor.BeamCli.Commands | ||
{ | ||
using Beamable.Common; | ||
using Beamable.Common.BeamCli; | ||
|
||
public class UnityReleaseSharedCodeArgs : Beamable.Common.BeamCli.IBeamCommandArgs | ||
{ | ||
/// <summary>path to csproj project</summary> | ||
public string csprojPath; | ||
/// <summary>relative path to Unity destination for src files</summary> | ||
public string unityPath; | ||
/// <summary>the name of the package to copy into</summary> | ||
public string packageId; | ||
/// <summary>relative path to Unity destination for src files</summary> | ||
public string packageRelativePath; | ||
/// <summary>relative path to src files</summary> | ||
public string relativeSrc; | ||
/// <summary>Serializes the arguments for command line usage.</summary> | ||
public virtual string Serialize() | ||
{ | ||
// Create a list of arguments for the command | ||
System.Collections.Generic.List<string> genBeamCommandArgs = new System.Collections.Generic.List<string>(); | ||
// Add the csprojPath value to the list of args. | ||
genBeamCommandArgs.Add(this.csprojPath.ToString()); | ||
// Add the unityPath value to the list of args. | ||
genBeamCommandArgs.Add(this.unityPath.ToString()); | ||
// Add the packageId value to the list of args. | ||
genBeamCommandArgs.Add(this.packageId.ToString()); | ||
// Add the packageRelativePath value to the list of args. | ||
genBeamCommandArgs.Add(this.packageRelativePath.ToString()); | ||
// Add the relativeSrc value to the list of args. | ||
genBeamCommandArgs.Add(this.relativeSrc.ToString()); | ||
string genBeamCommandStr = ""; | ||
// Join all the args with spaces | ||
genBeamCommandStr = string.Join(" ", genBeamCommandArgs); | ||
return genBeamCommandStr; | ||
} | ||
} | ||
public partial class BeamCommands | ||
{ | ||
public virtual UnityReleaseSharedCodeWrapper UnityReleaseSharedCode(UnityReleaseSharedCodeArgs releaseSharedCodeArgs) | ||
{ | ||
// Create a list of arguments for the command | ||
System.Collections.Generic.List<string> genBeamCommandArgs = new System.Collections.Generic.List<string>(); | ||
genBeamCommandArgs.Add("beam"); | ||
genBeamCommandArgs.Add(defaultBeamArgs.Serialize()); | ||
genBeamCommandArgs.Add("unity"); | ||
genBeamCommandArgs.Add("release-shared-code"); | ||
genBeamCommandArgs.Add(releaseSharedCodeArgs.Serialize()); | ||
// Create an instance of an IBeamCommand | ||
Beamable.Common.BeamCli.IBeamCommand command = this._factory.Create(); | ||
// Join all the command paths and args into one string | ||
string genBeamCommandStr = string.Join(" ", genBeamCommandArgs); | ||
// Configure the command with the command string | ||
command.SetCommand(genBeamCommandStr); | ||
UnityReleaseSharedCodeWrapper genBeamCommandWrapper = new UnityReleaseSharedCodeWrapper(); | ||
genBeamCommandWrapper.Command = command; | ||
// Return the command! | ||
return genBeamCommandWrapper; | ||
} | ||
} | ||
public class UnityReleaseSharedCodeWrapper : Beamable.Common.BeamCli.BeamCommandWrapper | ||
{ | ||
public virtual UnityReleaseSharedCodeWrapper OnStreamReleaseSharedUnityCodeCommandOutput(System.Action<ReportDataPoint<BeamReleaseSharedUnityCodeCommandOutput>> cb) | ||
{ | ||
this.Command.On("stream", cb); | ||
return this; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.