diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamDownloadAllNugetDepsToUnityCommandOutput.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamDownloadAllNugetDepsToUnityCommandOutput.cs new file mode 100644 index 0000000000..a307fffde5 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamDownloadAllNugetDepsToUnityCommandOutput.cs @@ -0,0 +1,11 @@ + +namespace Beamable.Editor.BeamCli.Commands +{ + using Beamable.Common; + using Beamable.Common.BeamCli; + + [System.SerializableAttribute()] + public class BeamDownloadAllNugetDepsToUnityCommandOutput + { + } +} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamDownloadAllNugetDepsToUnityCommandOutput.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamDownloadAllNugetDepsToUnityCommandOutput.cs.meta new file mode 100644 index 0000000000..a11d64ea82 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamDownloadAllNugetDepsToUnityCommandOutput.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1ebae16075ffe1dfb1b38d8733532258 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamDownloadNugetDepToUnityCommandOutput.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamDownloadNugetDepToUnityCommandOutput.cs new file mode 100644 index 0000000000..cac7f497b2 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamDownloadNugetDepToUnityCommandOutput.cs @@ -0,0 +1,11 @@ + +namespace Beamable.Editor.BeamCli.Commands +{ + using Beamable.Common; + using Beamable.Common.BeamCli; + + [System.SerializableAttribute()] + public class BeamDownloadNugetDepToUnityCommandOutput + { + } +} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamDownloadNugetDepToUnityCommandOutput.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamDownloadNugetDepToUnityCommandOutput.cs.meta new file mode 100644 index 0000000000..37050f6bd5 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamDownloadNugetDepToUnityCommandOutput.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a913ab1510ff567ee9aea5502c024e4c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamReleaseSharedUnityCodeCommandOutput.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamReleaseSharedUnityCodeCommandOutput.cs new file mode 100644 index 0000000000..9b7de6881d --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamReleaseSharedUnityCodeCommandOutput.cs @@ -0,0 +1,12 @@ + +namespace Beamable.Editor.BeamCli.Commands +{ + using Beamable.Common; + using Beamable.Common.BeamCli; + + [System.SerializableAttribute()] + public class BeamReleaseSharedUnityCodeCommandOutput + { + public string message; + } +} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamReleaseSharedUnityCodeCommandOutput.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamReleaseSharedUnityCodeCommandOutput.cs.meta new file mode 100644 index 0000000000..29b1c234b3 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamReleaseSharedUnityCodeCommandOutput.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bc4d1f63cba1760696349827ce7ceb17 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityDownloadAllNugetPackages.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityDownloadAllNugetPackages.cs new file mode 100644 index 0000000000..e7989e4367 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityDownloadAllNugetPackages.cs @@ -0,0 +1,55 @@ + +namespace Beamable.Editor.BeamCli.Commands +{ + using Beamable.Common; + using Beamable.Common.BeamCli; + + public class UnityDownloadAllNugetPackagesArgs : Beamable.Common.BeamCli.IBeamCommandArgs + { + /// the path to the Unity project + public string unityProjectPath; + /// Serializes the arguments for command line usage. + public virtual string Serialize() + { + // Create a list of arguments for the command + System.Collections.Generic.List genBeamCommandArgs = new System.Collections.Generic.List(); + // 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 genBeamCommandArgs = new System.Collections.Generic.List(); + 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> cb) + { + this.Command.On("stream", cb); + return this; + } + } +} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityDownloadAllNugetPackages.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityDownloadAllNugetPackages.cs.meta new file mode 100644 index 0000000000..c7d6a8daf2 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityDownloadAllNugetPackages.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1d3d29690bd917285f795c01ff883135 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityDownloadNugetPackage.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityDownloadNugetPackage.cs new file mode 100644 index 0000000000..1a48ea8b1c --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityDownloadNugetPackage.cs @@ -0,0 +1,67 @@ + +namespace Beamable.Editor.BeamCli.Commands +{ + using Beamable.Common; + using Beamable.Common.BeamCli; + + public class UnityDownloadNugetPackageArgs : Beamable.Common.BeamCli.IBeamCommandArgs + { + /// the nuget id of the package dep + public string packageId; + /// the version of the package + public string packageVersion; + /// the file path inside the package to copy + public string src; + /// the target location to place the copied files + public string dst; + /// Serializes the arguments for command line usage. + public virtual string Serialize() + { + // Create a list of arguments for the command + System.Collections.Generic.List genBeamCommandArgs = new System.Collections.Generic.List(); + // 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 genBeamCommandArgs = new System.Collections.Generic.List(); + 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> cb) + { + this.Command.On("stream", cb); + return this; + } + } +} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityDownloadNugetPackage.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityDownloadNugetPackage.cs.meta new file mode 100644 index 0000000000..8491a54e18 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityDownloadNugetPackage.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0a9e17131beaa04e27d2c90be8989903 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityReleaseSharedCode.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityReleaseSharedCode.cs new file mode 100644 index 0000000000..35e664bb23 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityReleaseSharedCode.cs @@ -0,0 +1,71 @@ + +namespace Beamable.Editor.BeamCli.Commands +{ + using Beamable.Common; + using Beamable.Common.BeamCli; + + public class UnityReleaseSharedCodeArgs : Beamable.Common.BeamCli.IBeamCommandArgs + { + /// path to csproj project + public string csprojPath; + /// relative path to Unity destination for src files + public string unityPath; + /// the name of the package to copy into + public string packageId; + /// relative path to Unity destination for src files + public string packageRelativePath; + /// relative path to src files + public string relativeSrc; + /// Serializes the arguments for command line usage. + public virtual string Serialize() + { + // Create a list of arguments for the command + System.Collections.Generic.List genBeamCommandArgs = new System.Collections.Generic.List(); + // 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 genBeamCommandArgs = new System.Collections.Generic.List(); + 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> cb) + { + this.Command.On("stream", cb); + return this; + } + } +} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityReleaseSharedCode.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityReleaseSharedCode.cs.meta new file mode 100644 index 0000000000..cb55be4ac3 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityReleaseSharedCode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 761b1e9f39ce8c46e6af880d844f2453 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: